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