ath5k: Fix functions for getting/setting slot time
authorLukáš Turek <8an@praha12.net>
Mon, 21 Dec 2009 21:50:49 +0000 (22:50 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 18:50:07 +0000 (13:50 -0500)
commite1aa369ec8fb981ef78bc5be3b3c58de7c5ff769
treeafe94e3f595edc13eae7ec6023f129786a432015
parent310bc676e314e92c18257bfc916951879451ee32
ath5k: Fix functions for getting/setting slot time

Functions ath5k_hw_get_slot_time and ath5k_hw_set_slot_time were
converting microseconds to clocks only for AR5210, although it's needed
for all supported devices. The conversion was moved outside the
hardware-specific branches.

The original code also limited minimum slot time to 9, while turbo modes
use 6, this was fixed too.

Signed-off-by: Lukas Turek <8an@praha12.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/qcu.c