diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-12-13 02:40:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-13 15:23:32 -0500 |
commit | 4357c6bfc83d4e8b1f18588f640be27bf4b0d0f7 (patch) | |
tree | 1336bb08c4b9a440c88011936c002c10b8061e64 /drivers | |
parent | 452d7dd816744efb5d0c22c2b038f2ffa5c7ec14 (diff) |
ath9k_hw: initialize ah->slottime
(u32) -1 is not particularly useful as a slottime default, so even though
the ath9k_hw default should never get used, it's better to pick something
sane here.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index d0a0acd15d46..ce4891ea4889 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -408,7 +408,7 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah) | |||
408 | AR_STA_ID1_CRPT_MIC_ENABLE | | 408 | AR_STA_ID1_CRPT_MIC_ENABLE | |
409 | AR_STA_ID1_MCAST_KSRCH; | 409 | AR_STA_ID1_MCAST_KSRCH; |
410 | ah->enable_32kHz_clock = DONT_USE_32KHZ; | 410 | ah->enable_32kHz_clock = DONT_USE_32KHZ; |
411 | ah->slottime = (u32) -1; | 411 | ah->slottime = 20; |
412 | ah->globaltxtimeout = (u32) -1; | 412 | ah->globaltxtimeout = (u32) -1; |
413 | ah->power_mode = ATH9K_PM_UNDEFINED; | 413 | ah->power_mode = ATH9K_PM_UNDEFINED; |
414 | } | 414 | } |