proski
2fc801acdb
Fix compilation with IEEE80211_DEBUG_REFCNT=1
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4164 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-15 18:59:53 +00:00
proski
e9c7901f6e
Don't use "{ 0 }" to initialize structures, use "{ }"
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4161 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 05:43:55 +00:00
proski
27d3e317c5
Fix dubious formatting after "if"
...
Found by coccinelle.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4160 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 01:30:00 +00:00
proski
43b7f2ddee
Fix certain NULL dereference in disabled XR code
...
Make it even more clear that the code is disabled. Found by coccinelle.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4155 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:47:06 +00:00
proski
ccf1970ea8
Fix dereferencing NULL in debug messages
...
Found by coccinelle.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4154 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:36:39 +00:00
proski
4f8410ce13
Fix pointless use of 0 in vap->iv_debug calculation
...
Found by coccinelle.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4153 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:25:04 +00:00
proski
ea28c77afc
Fix all instances of unused variables reported by gcc 4.6.0.
...
Change IEEE80211_NODE_SAVEQ_DEQUEUE to a compound statement returning a
value, which may or may not be ignored by the caller.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4137 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-05-03 21:56:02 +00:00
proski
e408c071a2
Add support for the latest kernels that don't define AUTOCONF_INCLUDED
...
Use CONFIG_LOCALVERSION as an alternative to check that the
configuration settings have been included.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4134 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-02-02 21:10:53 +00:00
proski
eec6650615
Add support for Linux 2.6.35
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4130 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-06-19 18:24:35 +00:00
proski
234a985259
Remove gratuitous double negation of ath_hal_hasdiversity() result
...
Reported by N.Leiten <nickleiten@gmail.com>
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4128 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-24 14:07:47 +00:00
proski
5e195288a9
Fix numerous "FAILED verification" messages on AR5210 and AR5211
...
Only call ath_hal_verify_default_intmit() if interference mitigation is
supported by the chipset.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4124 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-23 04:26:37 +00:00
proski
b801960404
Typo fix
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4108 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-14 22:34:09 +00:00
proski
4bbde45a51
Don't set ctl_name in Linux 2.6.33+, it was removed
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4102 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-09 08:34:37 +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
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
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
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
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
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
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
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
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
77e18d2269
Fix breakage introduced in tqi_burstTime calculation in r3756
...
Use IEEE80211_TXOP_TO_US for unit conversion. Found by Derek Smithies.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3954 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 03:17:48 +00:00
proski
0a63a44b94
Don't call dump_stack() for mere debugging, without major errors
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3941 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-02-04 21:43:58 +00:00
proski
e0b577bb5d
Replace __FUNCTION__ with __func__
...
__FUNCTION__ is an old GNU extension, __func__ is C99. Use of
__FUNCTION__ is discouraged.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3930 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-23 18:23:19 +00:00
proski
3e70e4f8c1
Compile fixes for Linux 2.6.29
...
Use netdev_priv() for Linux 2.4.27 and newer. Provide compatibility
wrapper for older kernels.
Imply CONFIG_KMOD for Linux 2.6.27 and newer.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3902 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-14 02:36:53 +00:00
benoit
a729fef8c6
Improved slottime and acktimeout/ctstimeout computations
...
Needs field testing
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3870 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-11-03 15:15:28 +00:00
br1
b327291039
IBSS ATIM window fixes
...
due to unlucky timing of beacon timer configuration (which we try to avoid) and
due to unlucky timing of local TSF updates (triggered by the reception of a
beacon with the same BSSID - something we can't avoid) the beacon timers (we
have 4) can be updated seperately, leaving one of them in the past, not beeing
updated until the timers wrap around. due to the fact that the beacon interval
does not fit into the timer period (16 bit) a whole number of times the size of
the ATIM window can get bigger than desired (we don't use ATIM right now so the
window size should always be 1).
this results in a phaenome described as "ramping" (ticket #1154 ) which is
actually a transmission delay, since the hardware is not allowed to transmit
data in the ATIM period.
the problem is described and discussed in length at
http://thread.gmane.org/gmane.linux.drivers.madwifi.devel/6066
since we don't know of a way to disable ATIM alltogether, the following adds
some workarounds to this problem:
1.) disable interrupts in timing critical function ath_beacon_config
2.) stop beacons before reconfiguring them
3.) check ATIM window after critical code which might have changed the timers
3a.) beacon configuration
3b.) reception of a beacon with the same BSSID. the hardware will have updated
the local TSF and this might have left one of the beacon timers in the past.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3867 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-09-23 18:21:56 +00:00
proski
02bac30645
More typo fixes
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3809 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-18 22:00:42 +00:00
benoit
bc6b795455
Merge some changes from -dfs:r3800:3803
...
Replace ath_hal_puttxbuf by ath_hw_puttxbuf
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3804 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-18 21:34:22 +00:00
proski
49943c6614
Fix opening brace placement in functions
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3799 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 07:29:42 +00:00
proski
000f685865
Rename doth to DFS where madwifi-dfs does it
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3797 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 06:44:24 +00:00
proski
a53e764d91
Eliminate some whitespace differences from madwifi-dfs
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3793 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 06:30:55 +00:00
proski
3294801ba6
Fix comment in ath_regdump_filter()
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3790 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 05:46:55 +00:00
proski
da7fdf05c1
Remove trailing whitespace where it's not in madwifi-dfs branch
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3783 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 03:44:41 +00:00
scottr
f85e81e0da
Be smarter about TX antenna selection for multicast frames.
...
Instead of simply alternating antenna, send multicast frames out each antenna
based on the proportion of sucessfully transmitted unicast frames. This helps
in situations where one antenna is significantly better than another.
Signed-off-by: Perry Lorier <perry@cs.waikato.ac.nz>
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3776 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-16 10:58:04 +00:00
mentor
caa352fdd2
Remove, rename, and move various mystery meat defines
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3756 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 02:31:09 +00:00
mentor
4c5dbf4fbd
Remove the world's most pointless macro definition
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3755 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 02:07:16 +00:00
mentor
77c44c5d03
Define MIN/MAX macros once
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3754 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 02:05:35 +00:00
mentor
3b5b743774
Distance/slot time & ack. timeout configuration:
...
* Update comments and references
* Refactor slot time from distance calculation code
* Correct timeout calculation (i.e., remove incorrect factor of 2)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3753 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 01:44:44 +00:00
mentor
9a2f6efd63
Correctly name Data type Null subtype frame.
...
Do not try to process Null and QoS Null frames as data.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3749 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-05 01:00:32 +00:00