ath9k: Fix beacon setup
PATCH 1/12 ath9k: Fix beacon setup
This patch revamps interface addition and deletion and simplifies slot allocation. There is no need to setup the beacon buffer in add/remove interface, remove this and use simple APIs for assigning/deleting slots.
Signed-off-by Sujith Manoharan <[email protected]>
--- drivers/net/wireless/ath/ath9k/ath9k.h | 4 +- drivers/net/wireless/ath/ath9k/beacon.c | 141 ++++++++------------------------ drivers/net/wireless/ath/ath9k/main.c | 48 +++-------- 3 files changed, 47 insertions(+), 146 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +2 -2
@@ -413,8 +413,8 @@ struct ath_beacon {void ath_beacon_tasklet (unsigned long data);void ath_beacon_config (struct ath_softc *sc,struct ieee80211_vif *vif); -int ath_beacon_alloc (struct ath_softc *sc,struct ieee80211_vif *vif); -void ath_beacon_return (struct ath_softc *sc,struct ath_vif *avp); +void ath9k_beacon_assign_slot (struct ath_softc *sc,struct ieee80211_vif *vif); +void ath9k_beacon_remove_slot (struct ath_softc *sc,struct ieee80211_vif *vif);int ath_beaconq_config (struct ath_softc *sc);void ath_set_beacon (struct ath_softc *sc);void ath9k_set_beaconing_status (struct ath_softc *sc,bool status);
drivers/net/wireless/ath/ath9k/beacon.c +33 -108
165 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/main.c +12 -36
96 lines not on this page · raw message
Signature · 1 line
1.7.11.2