2011-02-11 07:02:10

by Mohammed Shafi Shajakhan

[permalink] [raw]
Subject: [PATCH] ath9k_htc: make use of slot time macros

From: Mohammed Shafi Shajakhan <[email protected]>

Instead of using raw numbers to assign slot time it would be better to
make use of predefined slot time macros

Signed-off-by: Mohammed Shafi Shajakhan <[email protected]>
---
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 953036a..17db173 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1498,9 +1498,9 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,

if (changed & BSS_CHANGED_ERP_SLOT) {
if (bss_conf->use_short_slot)
- ah->slottime = 9;
+ ah->slottime = ATH9K_SLOT_TIME_9;
else
- ah->slottime = 20;
+ ah->slottime = ATH9K_SLOT_TIME_20;

ath9k_hw_init_global_settings(ah);
}
--
1.7.0.4