brcmsmac: remove brcms_bss_cfg->associated
Replaced the usage with pub->associated. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
45c4f657ce
commit
6da3b6c48d
|
@ -3049,8 +3049,6 @@ static void brcms_b_antsel_set(struct brcms_hardware *wlc_hw, u32 antsel_avail)
|
||||||
*/
|
*/
|
||||||
static bool brcms_c_ps_allowed(struct brcms_c_info *wlc)
|
static bool brcms_c_ps_allowed(struct brcms_c_info *wlc)
|
||||||
{
|
{
|
||||||
struct brcms_bss_cfg *cfg = wlc->bsscfg;
|
|
||||||
|
|
||||||
/* disallow PS when one of the following global conditions meets */
|
/* disallow PS when one of the following global conditions meets */
|
||||||
if (!wlc->pub->associated)
|
if (!wlc->pub->associated)
|
||||||
return false;
|
return false;
|
||||||
|
@ -3059,9 +3057,6 @@ static bool brcms_c_ps_allowed(struct brcms_c_info *wlc)
|
||||||
if (wlc->filter_flags & FIF_PROMISC_IN_BSS)
|
if (wlc->filter_flags & FIF_PROMISC_IN_BSS)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (cfg->associated)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3819,7 +3814,7 @@ static void brcms_c_set_home_chanspec(struct brcms_c_info *wlc, u16 chanspec)
|
||||||
if (wlc->home_chanspec != chanspec) {
|
if (wlc->home_chanspec != chanspec) {
|
||||||
wlc->home_chanspec = chanspec;
|
wlc->home_chanspec = chanspec;
|
||||||
|
|
||||||
if (wlc->bsscfg->associated)
|
if (wlc->pub->associated)
|
||||||
wlc->bsscfg->current_bss->chanspec = chanspec;
|
wlc->bsscfg->current_bss->chanspec = chanspec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5433,7 +5428,7 @@ static void brcms_c_ofdm_rateset_war(struct brcms_c_info *wlc)
|
||||||
u8 r;
|
u8 r;
|
||||||
bool war = false;
|
bool war = false;
|
||||||
|
|
||||||
if (wlc->bsscfg->associated)
|
if (wlc->pub->associated)
|
||||||
r = wlc->bsscfg->current_bss->rateset.rates[0];
|
r = wlc->bsscfg->current_bss->rateset.rates[0];
|
||||||
else
|
else
|
||||||
r = wlc->default_bss->rateset.rates[0];
|
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)
|
||||||
/* merge rateset coming in with the current mcsset */
|
/* merge rateset coming in with the current mcsset */
|
||||||
if (wlc->pub->_n_enab & SUPPORT_11N) {
|
if (wlc->pub->_n_enab & SUPPORT_11N) {
|
||||||
struct brcms_bss_info *mcsset_bss;
|
struct brcms_bss_info *mcsset_bss;
|
||||||
if (wlc->bsscfg->associated)
|
if (wlc->pub->associated)
|
||||||
mcsset_bss = wlc->bsscfg->current_bss;
|
mcsset_bss = wlc->bsscfg->current_bss;
|
||||||
else
|
else
|
||||||
mcsset_bss = wlc->default_bss;
|
mcsset_bss = wlc->default_bss;
|
||||||
|
@ -7496,7 +7491,6 @@ void brcms_c_scan_stop(struct brcms_c_info *wlc)
|
||||||
void brcms_c_associate_upd(struct brcms_c_info *wlc, bool state)
|
void brcms_c_associate_upd(struct brcms_c_info *wlc, bool state)
|
||||||
{
|
{
|
||||||
wlc->pub->associated = state;
|
wlc->pub->associated = state;
|
||||||
wlc->bsscfg->associated = state;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -589,7 +589,6 @@ enum brcms_bss_type {
|
||||||
* type: interface type
|
* type: interface type
|
||||||
* up: is this configuration up operational
|
* up: is this configuration up operational
|
||||||
* enable: is this configuration enabled
|
* enable: is this configuration enabled
|
||||||
* associated: is BSS in ASSOCIATED state
|
|
||||||
* SSID_len: the length of SSID
|
* SSID_len: the length of SSID
|
||||||
* SSID: SSID string
|
* SSID: SSID string
|
||||||
*
|
*
|
||||||
|
@ -608,7 +607,6 @@ struct brcms_bss_cfg {
|
||||||
enum brcms_bss_type type;
|
enum brcms_bss_type type;
|
||||||
bool up;
|
bool up;
|
||||||
bool enable;
|
bool enable;
|
||||||
bool associated;
|
|
||||||
u8 SSID_len;
|
u8 SSID_len;
|
||||||
u8 SSID[IEEE80211_MAX_SSID_LEN];
|
u8 SSID[IEEE80211_MAX_SSID_LEN];
|
||||||
u8 BSSID[ETH_ALEN];
|
u8 BSSID[ETH_ALEN];
|
||||||
|
|
Loading…
Reference in New Issue