summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-13 07:40:50 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2010-12-13 20:23:32 (GMT)
commit4357c6bfc83d4e8b1f18588f640be27bf4b0d0f7 (patch)
tree1336bb08c4b9a440c88011936c002c10b8061e64
parent452d7dd816744efb5d0c22c2b038f2ffa5c7ec14 (diff)
downloadlinux-4357c6bfc83d4e8b1f18588f640be27bf4b0d0f7.tar.xz
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>
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c2
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 d0a0acd..ce4891e 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)
AR_STA_ID1_CRPT_MIC_ENABLE |
AR_STA_ID1_MCAST_KSRCH;
ah->enable_32kHz_clock = DONT_USE_32KHZ;
- ah->slottime = (u32) -1;
+ ah->slottime = 20;
ah->globaltxtimeout = (u32) -1;
ah->power_mode = ATH9K_PM_UNDEFINED;
}