Message ID | 1308816554-2910-2-git-send-email-rmanoharan@atheros.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
> From: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> > > Ensure that hw is awake before accessing registers during > beacon generation. > > Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> > --- > drivers/net/wireless/ath/ath9k/beacon.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > John, Please drop this patch as powersave is not supported for ibss/ap mode. -- Rajkumar -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index 0b6e3b6..4abadc6 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c @@ -364,6 +364,7 @@ void ath_beacon_tasklet(unsigned long data) int slot; u32 bfaddr, bc = 0; + ath9k_ps_wakeup(sc); /* * Check if the previous beacon has gone out. If * not don't try to post another, skip this period @@ -388,6 +389,7 @@ void ath_beacon_tasklet(unsigned long data) ath_reset(sc, true); } + ath9k_ps_restore(sc); return; } @@ -471,6 +473,7 @@ void ath_beacon_tasklet(unsigned long data) spin_unlock_bh(&sc->sc_pcu_lock); } } + ath9k_ps_restore(sc); } static void ath9k_beacon_init(struct ath_softc *sc,