]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix ad-hoc nexttbtt calculation
authorFelix Fietkau <nbd@openwrt.org>
Tue, 17 May 2011 08:34:12 +0000 (10:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 May 2011 17:54:05 +0000 (13:54 -0400)
commit19e24dbe4b45100945d0e6b5c0cc322d90b284f1
tree83adac6e8a05fab9c9d7a6e62beb6d7104639231
parent9b708d7bd583dd52e275587014b4acc340192c06
ath9k: fix ad-hoc nexttbtt calculation

rounding up the delta between last-beacon-tsf and tsf to intval is wrong
and can lead to misconfigured timers which breaks beacon transmission.
Fix this by adding intval and subtracting the offset of the tsf within the
current slot.

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