Skip to contentSkip to conversation

ath9k: Split beacon configuration into mode specific routines

PATCH New Sujith 1 participant 1 message Mar 3, 2009 Networking drivers (wireless)

lore
Share & tools
lore

Sujith

author
#0 lore raw

PATCH 4/7 ath9k: Split beacon configuration into mode specific routines

This makes the code easier to understand.

---
 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
index 497e6f3..733108c 100644
@@ -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
index 52d4f67..2ed6848 100644
@@ -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