ath9k: Split beacon configuration into mode specific routines
PATCH 4/7 ath9k: Split beacon configuration into mode specific routines
This makes the code easier to understand.
Signed-off-by Sujith <[email protected]>
--- drivers/net/wireless/ath9k/ath9k.h | 1 - drivers/net/wireless/ath9k/beacon.c | 406 +++++++++++++++++------------------ drivers/net/wireless/ath9k/main.c | 3 +- 3 files changed, 203 insertions(+), 207 deletions(-)
drivers/net/wireless/ath9k/ath9k.h +0 -1
@@ -458,7 +458,6 @@ void ath_beacon_config(struct ath_softc *sc, int if_id);int ath_beaconq_setup (struct ath_hw *ah);int ath_beacon_alloc (struct ath_softc *sc,int if_id);void ath_beacon_return (struct ath_softc *sc,struct ath_vif *avp); -void ath_beacon_sync (struct ath_softc *sc,int if_id);/*******/ /* ANI */
drivers/net/wireless/ath9k/beacon.c +202 -204
443 lines not on this page · raw message
drivers/net/wireless/ath9k/main.c +1 -2
@@ -924,7 +924,6 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc,/* Configure the beacon */ ath_beacon_config (sc,0 ); - sc->sc_flags |=SC_OP_BEACONS ;/* Reset rssi stats */ sc->nodestats.ns_avgbrssi =ATH_RSSI_DUMMY_MARKER ;
@@ -2363,7 +2362,7 @@ static int ath9k_config_interface(struct ieee80211_hw *hw,if (error !=0 )return error; -ath_beacon_sync (sc,0 ); +ath_beacon_config (sc,0 ); } }
Signature · 1 line
1.6.1