Skip to contentSkip to conversation

ath9k: Cleanup the beacon tasklet

PATCH New Sujith Manoharan 1 participant 1 message Jul 17, 2012 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 9/12 ath9k: Cleanup the beacon tasklet

Remove unused variables, use a helper function to choose the slot and reset beaconing status at one place.

---
 drivers/net/wireless/ath/ath9k/ath9k.h  |   3 +-
 drivers/net/wireless/ath/ath9k/beacon.c | 126 ++++++++++++++++----------------
 drivers/net/wireless/ath/ath9k/init.c   |   2 +-
 3 files changed, 63 insertions(+), 68 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +1 -2
index 7e4839a..bb86e1b 100644
@@ -398,7 +398,6 @@ struct ath_beacon {
 
 	u32 beaconq;
 	u32 bmisscnt;
-	u32 ast_be_xmit;
 	u32 bc_tstamp;
 	struct ieee80211_vif *bslot[ATH_BCBUF];
 	int slottime;
@@ -412,7 +411,7 @@ struct ath_beacon {
 	bool tx_last;
 };
 
-void ath_beacon_tasklet(unsigned long data);
+void ath9k_beacon_tasklet(unsigned long data);
 bool ath9k_allow_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif);
 void ath9k_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif,
 			 u32 changed);
drivers/net/wireless/ath/ath9k/beacon.c +61 -65

222 lines not on this page · raw message

drivers/net/wireless/ath/ath9k/init.c +1 -1
index af95d18..41b2f3e 100644
@@ -558,7 +558,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,
 	spin_lock_init(&sc->debug.samp_lock);
 #endif
 	tasklet_init(&sc->intr_tq, ath9k_tasklet, (unsigned long)sc);
-	tasklet_init(&sc->bcon_tasklet, ath_beacon_tasklet,
+	tasklet_init(&sc->bcon_tasklet, ath9k_beacon_tasklet,
 		     (unsigned long)sc);
 
 	INIT_WORK(&sc->hw_reset_work, ath_reset_work);
Signature · 1 line
1.7.11.2