Search Linux Wireless

[PATCH 2/2] ath9k: Use PS wrappers in beacon tasklet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxxxx>

Ensure that hw is awake before accessing registers during
beacon generation.

Signed-off-by: Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxxxx>
---
 drivers/net/wireless/ath/ath9k/beacon.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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,
-- 
1.7.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux