aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/main.c12
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/main.h2
2 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c
index 90e6c0d93194..810b7e28058a 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
@@ -3049,8 +3049,6 @@ static void brcms_b_antsel_set(struct brcms_hardware *wlc_hw, u32 antsel_avail)
3049 */ 3049 */
3050static bool brcms_c_ps_allowed(struct brcms_c_info *wlc) 3050static bool brcms_c_ps_allowed(struct brcms_c_info *wlc)
3051{ 3051{
3052 struct brcms_bss_cfg *cfg = wlc->bsscfg;
3053
3054 /* disallow PS when one of the following global conditions meets */ 3052 /* disallow PS when one of the following global conditions meets */
3055 if (!wlc->pub->associated) 3053 if (!wlc->pub->associated)
3056 return false; 3054 return false;
@@ -3059,9 +3057,6 @@ static bool brcms_c_ps_allowed(struct brcms_c_info *wlc)
3059 if (wlc->filter_flags & FIF_PROMISC_IN_BSS) 3057 if (wlc->filter_flags & FIF_PROMISC_IN_BSS)
3060 return false; 3058 return false;
3061 3059
3062 if (cfg->associated)
3063 return false;
3064
3065 return true; 3060 return true;
3066} 3061}
3067 3062
@@ -3819,7 +3814,7 @@ static void brcms_c_set_home_chanspec(struct brcms_c_info *wlc, u16 chanspec)
3819 if (wlc->home_chanspec != chanspec) { 3814 if (wlc->home_chanspec != chanspec) {
3820 wlc->home_chanspec = chanspec; 3815 wlc->home_chanspec = chanspec;
3821 3816
3822 if (wlc->bsscfg->associated) 3817 if (wlc->pub->associated)
3823 wlc->bsscfg->current_bss->chanspec = chanspec; 3818 wlc->bsscfg->current_bss->chanspec = chanspec;
3824 } 3819 }
3825} 3820}
@@ -5433,7 +5428,7 @@ static void brcms_c_ofdm_rateset_war(struct brcms_c_info *wlc)
5433 u8 r; 5428 u8 r;
5434 bool war = false; 5429 bool war = false;
5435 5430
5436 if (wlc->bsscfg->associated) 5431 if (wlc->pub->associated)
5437 r = wlc->bsscfg->current_bss->rateset.rates[0]; 5432 r = wlc->bsscfg->current_bss->rateset.rates[0];
5438 else 5433 else
5439 r = wlc->default_bss->rateset.rates[0]; 5434 r = wlc->default_bss->rateset.rates[0];
@@ -5527,7 +5522,7 @@ int brcms_c_set_rateset(struct brcms_c_info *wlc, struct brcm_rateset *rs)
5527 /* merge rateset coming in with the current mcsset */ 5522 /* merge rateset coming in with the current mcsset */
5528 if (wlc->pub->_n_enab & SUPPORT_11N) { 5523 if (wlc->pub->_n_enab & SUPPORT_11N) {
5529 struct brcms_bss_info *mcsset_bss; 5524 struct brcms_bss_info *mcsset_bss;
5530 if (wlc->bsscfg->associated) 5525 if (wlc->pub->associated)
5531 mcsset_bss = wlc->bsscfg->current_bss; 5526 mcsset_bss = wlc->bsscfg->current_bss;
5532 else 5527 else
5533 mcsset_bss = wlc->default_bss; 5528 mcsset_bss = wlc->default_bss;
@@ -7496,7 +7491,6 @@ void brcms_c_scan_stop(struct brcms_c_info *wlc)
7496void brcms_c_associate_upd(struct brcms_c_info *wlc, bool state) 7491void brcms_c_associate_upd(struct brcms_c_info *wlc, bool state)
7497{ 7492{
7498 wlc->pub->associated = state; 7493 wlc->pub->associated = state;
7499 wlc->bsscfg->associated = state;
7500} 7494}
7501 7495
7502/* 7496/*
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.h b/drivers/net/wireless/brcm80211/brcmsmac/main.h
index 0cfe782f1efe..96dc2f4797cd 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.h
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.h
@@ -589,7 +589,6 @@ enum brcms_bss_type {
589 * type: interface type 589 * type: interface type
590 * up: is this configuration up operational 590 * up: is this configuration up operational
591 * enable: is this configuration enabled 591 * enable: is this configuration enabled
592 * associated: is BSS in ASSOCIATED state
593 * SSID_len: the length of SSID 592 * SSID_len: the length of SSID
594 * SSID: SSID string 593 * SSID: SSID string
595 * 594 *
@@ -608,7 +607,6 @@ struct brcms_bss_cfg {
608 enum brcms_bss_type type; 607 enum brcms_bss_type type;
609 bool up; 608 bool up;
610 bool enable; 609 bool enable;
611 bool associated;
612 u8 SSID_len; 610 u8 SSID_len;
613 u8 SSID[IEEE80211_MAX_SSID_LEN]; 611 u8 SSID[IEEE80211_MAX_SSID_LEN];
614 u8 BSSID[ETH_ALEN]; 612 u8 BSSID[ETH_ALEN];