Commit Graph

607 Commits

Author SHA1 Message Date
proski
2d0ca57ecd Use decimal notation in a debug message
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4057 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 01:13:24 +00:00
proski
46b1c0dbe9 Merge formatting change from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4055 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 01:05:28 +00:00
proski
489d0d146d Merge time conversion macros, users of IEEE80211_TU_TO_TSF from madwifi-dfs
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4054 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 01:03:32 +00:00
proski
892214198a Fix trailing whitespace
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4051 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:49:06 +00:00
proski
a96aec1cee Merge r3372 from madwifi-dfs
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4050 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:47:42 +00:00
proski
a6137f861b Use IEEE80211_IS_CHAN_PASSIVE - merge from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4048 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:29:33 +00:00
proski
d8b9462077 Merge formatting change from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4047 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:24:34 +00:00
proski
db43dba0dd Fix missing space before "else"
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4046 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:21:59 +00:00
proski
fffa8d29b7 Remove trailing whitespace in the code different from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4042 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:01:52 +00:00
proski
56641bc9a8 Merge formatting changes from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4039 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 23:29:12 +00:00
proski
38a75118cd Remove a tx queue dump in ath_tx_tasklet()
It was merged from the DFS branch and subsequently removed from it.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4037 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 23:17:30 +00:00
proski
ab3bb26503 Strengthen checks for ath_hal_setuptxqueue() return value
Reference: madwifi-dfs@3636


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4036 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 23:09:26 +00:00
proski
e8c1f45369 Reduce stack usage where it exceeds 1024 bytes.
Reference: trunk@4022.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4033 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 20:38:56 +00:00
mrenzmann
849695f17f Update svn:externals references for new repository location.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4031 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-28 13:48:24 +00:00
mrenzmann
fa5e6f3b93 Fix all references to old domain name.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4030 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-28 13:42:07 +00:00
proski
97b4d431f7 Fix compilation for 32-bit PowerPC on old kernels
32-bit PowerPC only gets iowrite32be() and ioread32be() in version
2.6.20.  This applies only to the merged "powerpc" architecture
identified by CONFIG_PPC_MERGE.  The old "ppc" architecture goes away in
Linux 2.6.27, so CONFIG_PPC_MERGE is no longer valid.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4029 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 06:30:27 +00:00
proski
14247bc74f Provide compatibility iowrite32() and ioread() for old sparc32
32-bit sparc only gets those functions in Linux 2.6.18.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4028 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 06:14:18 +00:00
proski
4f4275f9dc Rename u32 to up32, u32 is a type in Linux
This fixes compilation on sh64.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4027 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 05:00:20 +00:00
proski
1988f5f45e Fix compilation on sparc64 - tv_usec may be int, not long
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4026 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 01:21:48 +00:00
proski
e846fff3ea Fix compilation for mips64
On some 64-bit architectures u_int64_t is not unsigned long long.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4024 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 01:09:25 +00:00
proski
4b067f3c21 For AHB support, Linux 2.6.19 or newer is required
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4023 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-19 01:18:16 +00:00
proski
ba3592a8cd Fix all cases of stack usage exceeding 1024 bytes
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4022 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-12 20:05:46 +00:00
proski
731ebf0d39 Reduce stack usage in ar5112SetPowerTable() - eliminate tmpPowerTable
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4021 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-12 16:44:36 +00:00
proski
58395167ee Remove all references to _trace_regop() and MMIOTRACE
It's obsolete and useless now, when the HAL sources are open.  It also
misuses ath_hal_debug in a way incompatible with the use of
ath_hal_debug inside the HAL.

The mmiotrace facility is available in the kernel and doesn't require
any changes to the sources.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4020 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-07 21:11:03 +00:00
proski
200f8b8a6a Fix compilation with HAL_DEBUG=1
Provide forward declaration of struct ath_hal in ah_osdep.h.  Implement
OS_GETUPTIME (the implementation is quite primitive, as it's only used
once for some obscure condition in 5212 chips).  Implement HALDEBUG()
and ath_hal_ether_sprintf().


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4019 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-07 20:40:54 +00:00
proski
0e32b2c2a3 Fix a warning in ar5416GetGainBoundariesAndPdadcs
If numXpdGains is 0, minPwrT4[0] would not be initialized.  Make sure
numXpdGains is more than 0.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4018 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-07 19:35:22 +00:00
proski
cf2afadc08 Fix sample and minstrel algorithms for AR5416
Use correct shifts for the rate data.  Remove excessive debug statements
that would have to be extended even further to deal with AR5416.

The code has been taken from the FreeBSD driver.  The original coding
style has been preserved.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4015 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-28 05:59:25 +00:00
proski
a71559e552 Rewrite ar_device() using HAL magic numbers
It's more reliable than a table of all device IDs.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4014 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-28 05:33:47 +00:00
proski
43de7ca42d Fix excessive stack usage in ieee80211_ioctl_getchaninfo()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4012 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-28 04:56:27 +00:00
proski
a6343b9978 Fix incorrect use of ds_txstat in disabled code
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4010 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-22 22:09:31 +00:00
proski
2975ae47f2 Eliminate __CONCAT1 and __CONCAT, we don't need that complexity
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4009 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-22 22:07:23 +00:00
proski
c62003532a Remove all reverse engineering support, it's pointless now
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4008 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-22 22:05:57 +00:00
proski
43c86cb332 Convert to net_device_ops for Linux 2.6.29+
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4002 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 04:21:12 +00:00
proski
ac79ec6182 Don't unset dev->stop, it's dangerous to mess with netdev internals
Instead, unset IFF_RUNNUNG on the interface - this suppresses most
functionality of ath_stop().


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4001 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 03:47:42 +00:00
proski
193615c0df Initialize do_ioctl together with other device operations
It's better to keep initialization in one place to simplify conversion
to the new style netdev ops.

Declare ieee80211_ioctl() in ieee80211_linux.h next to other
ieee80211_ioctl* functions defined in ieee80211_wireless.c.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4000 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 03:11:34 +00:00
proski
a9427af7b3 Remove commented out reference to non-existent ieee80211_set_mac_address()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3999 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 02:55:25 +00:00
proski
8b8d49a612 Fix warning on systems without lockdep
Make lclass as used in ath_hw_reset().


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3997 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-12 19:42:40 +00:00
proski
b424bc2d8b Avoid triggering lockdep checker in ath_hw_reset()
Use spin_lock_irqsave_nested() instead of spin_lock_irqsave().  Use a
separate counter for the locking subclass, so that we don't exceed the
maximal value of 8.  We have 10 queues, but inactive queues don't get a
locking subclass number.

Provide a replacement for spin_lock_irqsave_nested() for kernels older
than 2.6.19.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3995 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-12 05:53:23 +00:00
benoit
407bde2595 Change radar pattern name for automated purpose (merge r3993 from madwifi-dfs)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3994 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-09 15:57:59 +00:00
proski
ec2664e900 Make ath_hal_eepromDetach() safer
Check that AH_PRIVATE(_ah)->ah_eepromDetach is not NULL before calling
it.  This fixes kernel oops in case if the attach function for the chip
fails before EEPROM support initialization and calls the corresponding
detach function.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3991 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 22:25:50 +00:00
proski
519d1b2a2e List only actually used options, enable what can be enabled
In particular, enable AH_SUPPORT_AR5312, which enables large parts of
HAL code for SoC devices.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3990 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 21:44:06 +00:00
proski
c0ff0095ab Remove check for AR2425, since the free HAL always supports it
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3989 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 21:42:36 +00:00
proski
1c2147eb68 Fix compiler errors with -O3
When the compiler tries inlining static functions, it can notice that
some variables may not be initialized in the functions being inlined.
Provide initialization for output variables in all branches of
execution, no matter how anomalous.  Add asserts in some cases.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3988 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 09:15:22 +00:00
proski
c135dc326c Simplify linker set implementation, fix compiler warning with -O3
gcc warns that "array subscript is above array bounds" with -O3 since
pvar is assigned before _i is checked.

Eliminate _i, use a new ppvar variable, which is a pointer to the
reference table.  Terminate reference tables with NULL instead of using
ARRAY_SIZE.  Fix types of reference tables to match those actually used
by the code.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3987 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 08:52:59 +00:00
proski
0cc57971d2 Fix Linux 2.6.30 compatibility
Linux 2.6.30 doesn't define IRQ_NONE as a macro.  Assume irqreturn_t,
IRQ_NONE and IRQ_HANDLED to be present on Linux 2.6.29 and newer.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3985 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 06:09:58 +00:00
proski
5702465321 Merge madwifi-free branch into the trunk
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3978 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-07 01:26:53 +00:00
proski
25fbd8a072 Remove all references to ALQ from makefiles
ALQ has never been functional in MadWifi, and now it's pointless.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3967 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 21:30:10 +00:00
proski
f011860a49 Remove *.bin on "make clean"
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3965 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 21:21:33 +00:00
proski
6aeff5a687 Remove unused node counting code
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3962 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 19:44:05 +00:00
proski
fca6a0c2df Make ieee80211_free_node() static
It should not be visible outside ieee80211_node.c


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3960 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 19:34:57 +00:00