mac80211: update brcmsmac ap patches
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 865-brcmsmac-remove-brcms_bss_cfg-up.patch
1 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
2 +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
3 @@ -7377,8 +7377,8 @@ void brcms_c_update_beacon(struct brcms_
4 {
5 struct brcms_bss_cfg *bsscfg = wlc->bsscfg;
6
7 - if (bsscfg->up && (bsscfg->type == BRCMS_TYPE_AP ||
8 - bsscfg->type == BRCMS_TYPE_ADHOC))
9 + if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP ||
10 + bsscfg->type == BRCMS_TYPE_ADHOC))
11 /* Clear the soft intmask */
12 wlc->defmacintmask &= ~MI_BCNTPL;
13 }
14 @@ -7453,8 +7453,8 @@ void brcms_c_update_probe_resp(struct br
15 struct brcms_bss_cfg *bsscfg = wlc->bsscfg;
16
17 /* update AP or IBSS probe responses */
18 - if (bsscfg->up && (bsscfg->type == BRCMS_TYPE_AP ||
19 - bsscfg->type == BRCMS_TYPE_ADHOC))
20 + if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP ||
21 + bsscfg->type == BRCMS_TYPE_ADHOC))
22 brcms_c_bss_update_probe_resp(wlc, bsscfg, suspend);
23 }
24
25 @@ -7807,7 +7807,7 @@ void brcms_c_init(struct brcms_c_info *w
26 brcms_c_set_bssid(wlc->bsscfg);
27
28 /* Update tsf_cfprep if associated and up */
29 - if (wlc->pub->associated && wlc->bsscfg->up) {
30 + if (wlc->pub->associated && wlc->pub->up) {
31 u32 bi;
32
33 /* get beacon period and convert to uS */
34 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.h
35 +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.h
36 @@ -587,7 +587,6 @@ enum brcms_bss_type {
37 *
38 * wlc: wlc to which this bsscfg belongs to.
39 * type: interface type
40 - * up: is this configuration up operational
41 * SSID_len: the length of SSID
42 * SSID: SSID string
43 *
44 @@ -604,7 +603,6 @@ enum brcms_bss_type {
45 struct brcms_bss_cfg {
46 struct brcms_c_info *wlc;
47 enum brcms_bss_type type;
48 - bool up;
49 u8 SSID_len;
50 u8 SSID[IEEE80211_MAX_SSID_LEN];
51 u8 BSSID[ETH_ALEN];