aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/beacon.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-07-17 07:45:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-17 15:11:38 -0400
commit6c43c090a92938c3e89ce3b7459f91c5159535e2 (patch)
tree897fdf29ec29794ade765287095cac7c6912239c /drivers/net/wireless/ath/ath9k/beacon.c
parentdf35d29e171ef043976b339812276ff96d1f4c21 (diff)
ath9k: Simplify ASSOC handling
Cleanup the messy logic dealing with station association and disassociation. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/beacon.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index d35700287d68..351ded55c798 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -472,7 +472,7 @@ static void ath_beacon_config_sta(struct ath_softc *sc,
472 int num_beacons, offset, dtim_dec_count, cfp_dec_count; 472 int num_beacons, offset, dtim_dec_count, cfp_dec_count;
473 473
474 /* No need to configure beacon if we are not associated */ 474 /* No need to configure beacon if we are not associated */
475 if (!common->curaid) { 475 if (!test_bit(SC_OP_PRIM_STA_VIF, &sc->sc_flags)) {
476 ath_dbg(common, BEACON, 476 ath_dbg(common, BEACON,
477 "STA is not yet associated..skipping beacon config\n"); 477 "STA is not yet associated..skipping beacon config\n");
478 return; 478 return;