]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: use SWBA to detect IBSS HW merges
authorBruno Randolf <bruno@thinktube.com>
Sat, 19 Jan 2008 09:18:21 +0000 (18:18 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:52 +0000 (15:10 -0800)
commit9119bfecc264886fcfe041f5bdb53edaf97f4db0
tree9a39d8523018a07d25ed672390d068402f52c65c
parenta26c433dce769547c598669e81fdd5c5ce9ad8fd
ath5k: use SWBA to detect IBSS HW merges

use SWBA (software beacon alert) interrupts to keep track of the next beacon
time und check if a HW merge (automatic TSF update) has happened on every
received beacon with the same BSSID.

this is necessary because the atheros hardware will silently update the local
TSF in IBSS mode, but not its beacon timers. if the TSF is ahead of the beacon
timers no beacons are sent until the timers wrap around (typically after about
1 minute).

this solution is not very nice, since we have to look into every beacon, but
there is apparently no other way to detect HW merges.

drivers/net/wireless/ath5k/base.c:      Changes-licensed-under: 3-Clause-BSD
drivers/net/wireless/ath5k/base.h:      Changes-licensed-under: 3-Clause-BSD

Signed-off-by: Bruno Randolf <bruno@thinktube.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c
drivers/net/wireless/ath5k/base.h