ath5k: fix SIFS time handling
authorFelix Fietkau <nbd@openwrt.org>
Sat, 9 Apr 2011 21:10:20 +0000 (23:10 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Apr 2011 20:59:06 +0000 (16:59 -0400)
commit488a50176c169eb36544b4f970c8bba68ede30a1
tree0cf588a0bd781024b784d6a2982c8f4732ba6fcd
parenta27049e2c926bcf68360532a5ae66e408296ae85
ath5k: fix SIFS time handling

ath5k uses 8 usec as a sifs time, extracted from the initvals, whereas the
standard requires a sifs time of 10. The difference originates from the fact
that the SIFS register has an offset of 2 usec.
Fix the SIFS time definition to use the standard value of 10 usec and subtract
2 usecs when writing the SIFS register.

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