benoit
a548cc50ad
Rewrote IBSS merge (part that updates the IBSS parameters using content from
...
received beacons). Merge from branches/madwifi-dfs@3662
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4079 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 17:37:55 +00:00
benoit
d7126f8393
Avoid kernel panic and returns 802.11b.
...
Merge from branches/madwifi-dfs@3649
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4078 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 17:33:54 +00:00
benoit
8c022a1869
Updated the radar pulse analysis algorithm
...
Merge from branches/madwifi-dfs@4049
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4077 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 17:25:26 +00:00
benoit
1b019e9b0d
Merge madwifi-dfs back to trunk: this change is only about DFS, excluding
...
DFS pulse analysis. Untested.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4076 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 17:20:58 +00:00
benoit
5b3bc6b37c
Removed sc_dfs_cac. Replaced it by checking the timer sc_dfs_cac_timer directly
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4075 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 15:30:58 +00:00
benoit
622cfce180
Make use of the IEEE80211_IS_CHAN_RADAR macro
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4074 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 10:15:28 +00:00
benoit
16a7158cf2
Fix needed in order to compile without Fast Frame feature enabled.
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4071 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-05 07:16:27 +00:00
proski
20802ea505
Remove IEEE80211_CHANSWITCHANN_BYTES, it's unused
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4066 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-26 03:39:25 +00:00
proski
f1873dba18
Allow compilation with BUS=AHB in 64-bit systems
...
Don't enable AHB support in HAL on 64-bit systems, it's not 64-bit clean
and is not meant to be. Provide replacement definition for KSEG1ADDR
when it's not defined (that includes 64-bit mips). Remove other
replacement definitions, they are not needed anymore.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4064 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-26 02:06:16 +00:00
proski
e0712b8175
Fix compiler warning on some big-endian systems
...
Don't assume that both iowrite32() and iowrite32be() return values in
the _OS_REG_WRITE definition. _OS_REG_WRITE discards the value anyway.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4061 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-26 01:31:05 +00:00
proski
530d6494db
Compile fix with VLAN support on recent kernels
...
VLAN operations should be in net_device_ops.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4059 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 22:22:58 +00:00
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