ath9k: Simplify ASSOC handling
PATCH 4/12 ath9k: Simplify ASSOC handling
Cleanup the messy logic dealing with station association and disassociation.
Signed-off-by Sujith Manoharan <[email protected]>
--- 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
@@ -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