aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index 06eaaa9ece6b..20b1fd39451d 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -573,6 +573,13 @@ static void ath_beacon_config_sta(struct ath_softc *sc,
573 u64 tsf; 573 u64 tsf;
574 int num_beacons, offset, dtim_dec_count, cfp_dec_count; 574 int num_beacons, offset, dtim_dec_count, cfp_dec_count;
575 575
576 /* No need to configure beacon if we are not associated */
577 if (!common->curaid) {
578 ath_print(common, ATH_DBG_BEACON,
579 "STA is not yet associated..skipping beacon config\n");
580 return;
581 }
582
576 memset(&bs, 0, sizeof(bs)); 583 memset(&bs, 0, sizeof(bs));
577 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; 584 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD;
578 585