diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-07-17 11:45:50 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-17 19:11:38 (GMT) |
commit | 6c43c090a92938c3e89ce3b7459f91c5159535e2 (patch) | |
tree | 897fdf29ec29794ade765287095cac7c6912239c /drivers/net/wireless/ath/ath9k/beacon.c | |
parent | df35d29e171ef043976b339812276ff96d1f4c21 (diff) | |
download | linux-6c43c090a92938c3e89ce3b7459f91c5159535e2.tar.xz |
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.c | 2 |
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 d357002..351ded5 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, 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; |