Skip to contentSkip to conversation

ath9k: Fix PS wrappers in ath9k_set_coverage_class

PATCH New Mohammed Shafi Shajakhan 1 participant 1 message Aug 24, 2011 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ath9k: Fix PS wrappers in ath9k_set_coverage_class

From: Mohammed Shafi Shajakhan <[email protected]>

this callback is called during suspend/resume and also via iw command. it configures parameters like sifs, slottime, acktimeout in ath9k_hw_init_global_settings where few REG_READ, REG_RMW are also done and hence the need for PS wrappers

---
 drivers/net/wireless/ath/ath9k/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/main.c +4 -0
index 781af25..2486f5c 100644
@@ -2285,7 +2285,11 @@ static void ath9k_set_coverage_class(struct ieee80211_hw *hw, u8 coverage_class)
 
 	mutex_lock(&sc->mutex);
 	ah->coverage_class = coverage_class;
+
+	ath9k_ps_wakeup(sc);
 	ath9k_hw_init_global_settings(ah);
+	ath9k_ps_restore(sc);
+
 	mutex_unlock(&sc->mutex);
 }
 
Signature · 1 line
1.7.0.4