ath9k: fix TSF offset precision issue
authorFelix Fietkau <nbd@openwrt.org>
Thu, 19 Dec 2013 17:01:50 +0000 (18:01 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 Dec 2013 19:41:56 +0000 (14:41 -0500)
commit63ded3f059f5c906fdef4b7f0663fb39c4d96c8e
treeebeebc78a32e8e2511aa64a05ed20c7b22ead201
parentc32e4e518f6642372c57ac9edbfb8274fa20c5e4
ath9k: fix TSF offset precision issue

Dividing the beacon interval by ATH_BCBUF (8) truncates the result for
the default beacon interval of 100.
Fix the calculation by moving the division after conversion from TU to
microseconds.

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