aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/beacon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/beacon.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index 02eb4f10332b..637267187929 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -328,7 +328,7 @@ void ath9k_beacon_tasklet(unsigned long data)
328 bool edma = !!(ah->caps.hw_caps & ATH9K_HW_CAP_EDMA); 328 bool edma = !!(ah->caps.hw_caps & ATH9K_HW_CAP_EDMA);
329 int slot; 329 int slot;
330 330
331 if (test_bit(SC_OP_HW_RESET, &sc->sc_flags)) { 331 if (test_bit(ATH_OP_HW_RESET, &common->op_flags)) {
332 ath_dbg(common, RESET, 332 ath_dbg(common, RESET,
333 "reset work is pending, skip beaconing now\n"); 333 "reset work is pending, skip beaconing now\n");
334 return; 334 return;
@@ -524,7 +524,7 @@ static void ath9k_beacon_config_sta(struct ath_softc *sc,
524 u64 tsf; 524 u64 tsf;
525 525
526 /* No need to configure beacon if we are not associated */ 526 /* No need to configure beacon if we are not associated */
527 if (!test_bit(SC_OP_PRIM_STA_VIF, &sc->sc_flags)) { 527 if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) {
528 ath_dbg(common, BEACON, 528 ath_dbg(common, BEACON,
529 "STA is not yet associated..skipping beacon config\n"); 529 "STA is not yet associated..skipping beacon config\n");
530 return; 530 return;
@@ -629,7 +629,7 @@ static void ath9k_beacon_config_adhoc(struct ath_softc *sc,
629 * joiner case in IBSS mode. 629 * joiner case in IBSS mode.
630 */ 630 */
631 if (!conf->ibss_creator && conf->enable_beacon) 631 if (!conf->ibss_creator && conf->enable_beacon)
632 set_bit(SC_OP_BEACONS, &sc->sc_flags); 632 set_bit(ATH_OP_BEACONS, &common->op_flags);
633} 633}
634 634
635static bool ath9k_allow_beacon_config(struct ath_softc *sc, 635static bool ath9k_allow_beacon_config(struct ath_softc *sc,
@@ -649,7 +649,7 @@ static bool ath9k_allow_beacon_config(struct ath_softc *sc,
649 649
650 if (sc->sc_ah->opmode == NL80211_IFTYPE_STATION) { 650 if (sc->sc_ah->opmode == NL80211_IFTYPE_STATION) {
651 if ((vif->type == NL80211_IFTYPE_STATION) && 651 if ((vif->type == NL80211_IFTYPE_STATION) &&
652 test_bit(SC_OP_BEACONS, &sc->sc_flags) && 652 test_bit(ATH_OP_BEACONS, &common->op_flags) &&
653 !avp->primary_sta_vif) { 653 !avp->primary_sta_vif) {
654 ath_dbg(common, CONFIG, 654 ath_dbg(common, CONFIG,
655 "Beacon already configured for a station interface\n"); 655 "Beacon already configured for a station interface\n");
@@ -700,6 +700,8 @@ void ath9k_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif,
700{ 700{
701 struct ieee80211_bss_conf *bss_conf = &vif->bss_conf; 701 struct ieee80211_bss_conf *bss_conf = &vif->bss_conf;
702 struct ath_beacon_config *cur_conf = &sc->cur_beacon_conf; 702 struct ath_beacon_config *cur_conf = &sc->cur_beacon_conf;
703 struct ath_hw *ah = sc->sc_ah;
704 struct ath_common *common = ath9k_hw_common(ah);
703 unsigned long flags; 705 unsigned long flags;
704 bool skip_beacon = false; 706 bool skip_beacon = false;
705 707
@@ -712,7 +714,7 @@ void ath9k_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif,
712 if (sc->sc_ah->opmode == NL80211_IFTYPE_STATION) { 714 if (sc->sc_ah->opmode == NL80211_IFTYPE_STATION) {
713 ath9k_cache_beacon_config(sc, bss_conf); 715 ath9k_cache_beacon_config(sc, bss_conf);
714 ath9k_set_beacon(sc); 716 ath9k_set_beacon(sc);
715 set_bit(SC_OP_BEACONS, &sc->sc_flags); 717 set_bit(ATH_OP_BEACONS, &common->op_flags);
716 return; 718 return;
717 } 719 }
718 720
@@ -751,13 +753,13 @@ void ath9k_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif,
751 } 753 }
752 754
753 /* 755 /*
754 * Do not set the SC_OP_BEACONS flag for IBSS joiner mode 756 * Do not set the ATH_OP_BEACONS flag for IBSS joiner mode
755 * here, it is done in ath9k_beacon_config_adhoc(). 757 * here, it is done in ath9k_beacon_config_adhoc().
756 */ 758 */
757 if (cur_conf->enable_beacon && !skip_beacon) 759 if (cur_conf->enable_beacon && !skip_beacon)
758 set_bit(SC_OP_BEACONS, &sc->sc_flags); 760 set_bit(ATH_OP_BEACONS, &common->op_flags);
759 else 761 else
760 clear_bit(SC_OP_BEACONS, &sc->sc_flags); 762 clear_bit(ATH_OP_BEACONS, &common->op_flags);
761 } 763 }
762} 764}
763 765