diff mbox

ath9k: wakeup hw before stopping beacon queue

Message ID 1296570892-7074-2-git-send-email-rmanoharan@atheros.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Rajkumar Manoharan Feb. 1, 2011, 2:34 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index c9925e9..bfc70c1 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1411,6 +1411,7 @@  static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw,
 
 	if (ath9k_uses_beacons(vif->type)) {
 		int error;
+		ath9k_ps_wakeup(sc);
 		ath9k_hw_stoptxdma(sc->sc_ah, sc->beacon.beaconq);
 		/* This may fail because upper levels do not have beacons
 		 * properly configured yet.  That's OK, we assume it
@@ -1423,6 +1424,7 @@  static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw,
 			ath9k_reclaim_beacon(sc, vif);
 		else
 			ath_beacon_config(sc, vif);
+		ath9k_ps_restore(sc);
 	}
 }