Skip to contentSkip to conversation

ath9k: Simplify ASSOC handling

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

lore
Share & tools
lore
#0 lore raw

PATCH 4/12 ath9k: Simplify ASSOC handling

Cleanup the messy logic dealing with station association and disassociation.

---
 drivers/net/wireless/ath/ath9k/beacon.c |   2 +-
 drivers/net/wireless/ath/ath9k/main.c   | 118 +++++++++++++-------------------
 2 files changed, 49 insertions(+), 71 deletions(-)
drivers/net/wireless/ath/ath9k/beacon.c +1 -1
index d357002..351ded5 100644
@@ -472,7 +472,7 @@ static void ath_beacon_config_sta(struct ath_softc *sc,
 	int num_beacons, offset, dtim_dec_count, cfp_dec_count;
 
 	/* No need to configure beacon if we are not associated */
-	if (!common->curaid) {
+	if (!test_bit(SC_OP_PRIM_STA_VIF, &sc->sc_flags)) {
 		ath_dbg(common, BEACON,
 			"STA is not yet associated..skipping beacon config\n");
 		return;
drivers/net/wireless/ath/ath9k/main.c +48 -70

164 lines not on this page · raw message

Signature · 1 line
1.7.11.2