ath9k: fix beacon slot processing in ad-hoc mode
authorFelix Fietkau <nbd@openwrt.org>
Sat, 2 Apr 2011 01:39:47 +0000 (03:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 7 Apr 2011 19:34:13 +0000 (15:34 -0400)
commit5e65968a10bb628b87024161c9adc8dbd886b47a
tree0baced7baf4848a5477cd08e28a0b4c20250a8f0
parent2be50b8df53f2f329b7ddcc8be286ef6a7469fd2
ath9k: fix beacon slot processing in ad-hoc mode

The recent cleanups in the beacon code fixed SWBA backoff calculation,
however it did not remove a line of code that worked around the issues
from the earlier version of the code.
After the cleanup, the initial TSF based slot calculation now always
returns 0 instead of ATH_BCBUF-1, so the previous hack that reversed the
slot order needs to be removed, as ad-hoc mode does not use staggered
beacons.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/beacon.c