ath9k: Cleanup the beacon tasklet
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.
Signed-off-by Sujith Manoharan <[email protected]>
--- 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
@@ -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
@@ -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