aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorRoland Vossen <rvossen@broadcom.com>2011-03-10 08:40:19 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 14:45:16 -0400
commitb1562946267b14012e4d6e76c71db1f1af726913 (patch)
tree26a18fbe7cc4b09833f24bd5743b6811b463fbc3 /drivers/staging
parentd4b977bd4875e852c98f0423eab43d35f1e84874 (diff)
staging: brcm80211: replaced wlc_bsscfg_t by struct wlc_bsscfg
Code cleanup. Signed-off-by: Roland Vossen <rvossen@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/brcm80211/brcmsmac/wlc_alloc.c10
-rw-r--r--drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h5
-rw-r--r--drivers/staging/brcm80211/brcmsmac/wlc_main.c50
-rw-r--r--drivers/staging/brcm80211/brcmsmac/wlc_main.h28
4 files changed, 49 insertions, 44 deletions
diff --git a/drivers/staging/brcm80211/brcmsmac/wlc_alloc.c b/drivers/staging/brcm80211/brcmsmac/wlc_alloc.c
index 07684967d87..e928fa10834 100644
--- a/drivers/staging/brcm80211/brcmsmac/wlc_alloc.c
+++ b/drivers/staging/brcm80211/brcmsmac/wlc_alloc.c
@@ -120,11 +120,11 @@ static void wlc_pub_mfree(struct wlc_pub *pub)
120 kfree(pub); 120 kfree(pub);
121} 121}
122 122
123static wlc_bsscfg_t *wlc_bsscfg_malloc(uint unit) 123static struct wlc_bsscfg *wlc_bsscfg_malloc(uint unit)
124{ 124{
125 wlc_bsscfg_t *cfg; 125 struct wlc_bsscfg *cfg;
126 126
127 cfg = (wlc_bsscfg_t *) wlc_calloc(unit, sizeof(wlc_bsscfg_t)); 127 cfg = (struct wlc_bsscfg *) wlc_calloc(unit, sizeof(struct wlc_bsscfg));
128 if (cfg == NULL) 128 if (cfg == NULL)
129 goto fail; 129 goto fail;
130 130
@@ -140,7 +140,7 @@ static wlc_bsscfg_t *wlc_bsscfg_malloc(uint unit)
140 return NULL; 140 return NULL;
141} 141}
142 142
143static void wlc_bsscfg_mfree(wlc_bsscfg_t *cfg) 143static void wlc_bsscfg_mfree(struct wlc_bsscfg *cfg)
144{ 144{
145 if (cfg == NULL) 145 if (cfg == NULL)
146 return; 146 return;
@@ -150,7 +150,7 @@ static void wlc_bsscfg_mfree(wlc_bsscfg_t *cfg)
150 kfree(cfg); 150 kfree(cfg);
151} 151}
152 152
153void wlc_bsscfg_ID_assign(struct wlc_info *wlc, wlc_bsscfg_t *bsscfg) 153void wlc_bsscfg_ID_assign(struct wlc_info *wlc, struct wlc_bsscfg *bsscfg)
154{ 154{
155 bsscfg->ID = wlc->next_bsscfg_ID; 155 bsscfg->ID = wlc->next_bsscfg_ID;
156 wlc->next_bsscfg_ID++; 156 wlc->next_bsscfg_ID++;
diff --git a/drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h b/drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h
index 0951574ea60..cd5cfbbce94 100644
--- a/drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h
+++ b/drivers/staging/brcm80211/brcmsmac/wlc_bsscfg.h
@@ -31,7 +31,7 @@ typedef struct wlc_bsscfg wlc_bsscfg_t;
31#define BCN_TEMPLATE_COUNT 2 31#define BCN_TEMPLATE_COUNT 2
32 32
33/* Iterator for "associated" STA bss configs: 33/* Iterator for "associated" STA bss configs:
34 (struct wlc_info *wlc, int idx, wlc_bsscfg_t *cfg) */ 34 (struct wlc_info *wlc, int idx, struct wlc_bsscfg *cfg) */
35#define FOREACH_AS_STA(wlc, idx, cfg) \ 35#define FOREACH_AS_STA(wlc, idx, cfg) \
36 for (idx = 0; (int) idx < WLC_MAXBSSCFG; idx++) \ 36 for (idx = 0; (int) idx < WLC_MAXBSSCFG; idx++) \
37 if ((cfg = (wlc)->bsscfg[idx]) && BSSCFG_STA(cfg) && cfg->associated) 37 if ((cfg = (wlc)->bsscfg[idx]) && BSSCFG_STA(cfg) && cfg->associated)
@@ -125,7 +125,8 @@ struct wlc_bsscfg {
125#define HWBCN_ENAB(cfg) (((cfg)->flags & WLC_BSSCFG_HW_BCN) != 0) 125#define HWBCN_ENAB(cfg) (((cfg)->flags & WLC_BSSCFG_HW_BCN) != 0)
126#define HWPRB_ENAB(cfg) (((cfg)->flags & WLC_BSSCFG_HW_PRB) != 0) 126#define HWPRB_ENAB(cfg) (((cfg)->flags & WLC_BSSCFG_HW_PRB) != 0)
127 127
128extern void wlc_bsscfg_ID_assign(struct wlc_info *wlc, wlc_bsscfg_t * bsscfg); 128extern void wlc_bsscfg_ID_assign(struct wlc_info *wlc,
129 struct wlc_bsscfg *bsscfg);
129 130
130/* Extend N_ENAB to per-BSS */ 131/* Extend N_ENAB to per-BSS */
131#define BSS_N_ENAB(wlc, cfg) \ 132#define BSS_N_ENAB(wlc, cfg) \
diff --git a/drivers/staging/brcm80211/brcmsmac/wlc_main.c b/drivers/staging/brcm80211/brcmsmac/wlc_main.c
index 38330e7f36c..97b320da433 100644
--- a/drivers/staging/brcm80211/brcmsmac/wlc_main.c
+++ b/drivers/staging/brcm80211/brcmsmac/wlc_main.c
@@ -354,7 +354,7 @@ bool wlc_stay_awake(struct wlc_info *wlc)
354bool wlc_ps_allowed(struct wlc_info *wlc) 354bool wlc_ps_allowed(struct wlc_info *wlc)
355{ 355{
356 int idx; 356 int idx;
357 wlc_bsscfg_t *cfg; 357 struct wlc_bsscfg *cfg;
358 358
359 /* disallow PS when one of the following global conditions meets */ 359 /* disallow PS when one of the following global conditions meets */
360 if (!wlc->pub->associated || !wlc->PMenabled || wlc->PM_override) 360 if (!wlc->pub->associated || !wlc->PMenabled || wlc->PM_override)
@@ -437,7 +437,7 @@ void wlc_init(struct wlc_info *wlc)
437 d11regs_t *regs; 437 d11regs_t *regs;
438 chanspec_t chanspec; 438 chanspec_t chanspec;
439 int i; 439 int i;
440 wlc_bsscfg_t *bsscfg; 440 struct wlc_bsscfg *bsscfg;
441 bool mute = false; 441 bool mute = false;
442 442
443 WL_TRACE("wl%d: wlc_init\n", wlc->pub->unit); 443 WL_TRACE("wl%d: wlc_init\n", wlc->pub->unit);
@@ -630,7 +630,7 @@ bool wlc_ps_check(struct wlc_info *wlc)
630 630
631 if (hps != ((tmp & MCTL_HPS) != 0)) { 631 if (hps != ((tmp & MCTL_HPS) != 0)) {
632 int idx; 632 int idx;
633 wlc_bsscfg_t *cfg; 633 struct wlc_bsscfg *cfg;
634 WL_ERROR("wl%d: hps not sync, sw %d, maccontrol 0x%x\n", 634 WL_ERROR("wl%d: hps not sync, sw %d, maccontrol 0x%x\n",
635 wlc->pub->unit, hps, tmp); 635 wlc->pub->unit, hps, tmp);
636 FOREACH_BSS(wlc, idx, cfg) { 636 FOREACH_BSS(wlc, idx, cfg) {
@@ -688,7 +688,7 @@ void wlc_set_ps_ctrl(struct wlc_info *wlc)
688 * Write this BSS config's MAC address to core. 688 * Write this BSS config's MAC address to core.
689 * Updates RXE match engine. 689 * Updates RXE match engine.
690 */ 690 */
691int wlc_set_mac(wlc_bsscfg_t *cfg) 691int wlc_set_mac(struct wlc_bsscfg *cfg)
692{ 692{
693 int err = 0; 693 int err = 0;
694 struct wlc_info *wlc = cfg->wlc; 694 struct wlc_info *wlc = cfg->wlc;
@@ -706,7 +706,7 @@ int wlc_set_mac(wlc_bsscfg_t *cfg)
706/* Write the BSS config's BSSID address to core (set_bssid in d11procs.tcl). 706/* Write the BSS config's BSSID address to core (set_bssid in d11procs.tcl).
707 * Updates RXE match engine. 707 * Updates RXE match engine.
708 */ 708 */
709void wlc_set_bssid(wlc_bsscfg_t *cfg) 709void wlc_set_bssid(struct wlc_bsscfg *cfg)
710{ 710{
711 struct wlc_info *wlc = cfg->wlc; 711 struct wlc_info *wlc = cfg->wlc;
712 712
@@ -728,7 +728,7 @@ void wlc_set_bssid(wlc_bsscfg_t *cfg)
728void wlc_switch_shortslot(struct wlc_info *wlc, bool shortslot) 728void wlc_switch_shortslot(struct wlc_info *wlc, bool shortslot)
729{ 729{
730 int idx; 730 int idx;
731 wlc_bsscfg_t *cfg; 731 struct wlc_bsscfg *cfg;
732 732
733 ASSERT(wlc->band->gmode); 733 ASSERT(wlc->band->gmode);
734 734
@@ -786,7 +786,7 @@ void wlc_set_home_chanspec(struct wlc_info *wlc, chanspec_t chanspec)
786{ 786{
787 if (wlc->home_chanspec != chanspec) { 787 if (wlc->home_chanspec != chanspec) {
788 int idx; 788 int idx;
789 wlc_bsscfg_t *cfg; 789 struct wlc_bsscfg *cfg;
790 790
791 wlc->home_chanspec = chanspec; 791 wlc->home_chanspec = chanspec;
792 792
@@ -1313,7 +1313,7 @@ static void WLBANDINITFN(wlc_bsinit) (struct wlc_info *wlc)
1313static void WLBANDINITFN(wlc_setband) (struct wlc_info *wlc, uint bandunit) 1313static void WLBANDINITFN(wlc_setband) (struct wlc_info *wlc, uint bandunit)
1314{ 1314{
1315 int idx; 1315 int idx;
1316 wlc_bsscfg_t *cfg; 1316 struct wlc_bsscfg *cfg;
1317 1317
1318 ASSERT(NBANDS(wlc) > 1); 1318 ASSERT(NBANDS(wlc) > 1);
1319 ASSERT(!wlc->bandlocked); 1319 ASSERT(!wlc->bandlocked);
@@ -1439,7 +1439,7 @@ void wlc_wme_setparams(struct wlc_info *wlc, u16 aci, void *arg, bool suspend)
1439 1439
1440} 1440}
1441 1441
1442void wlc_edcf_setparams(wlc_bsscfg_t *cfg, bool suspend) 1442void wlc_edcf_setparams(struct wlc_bsscfg *cfg, bool suspend)
1443{ 1443{
1444 struct wlc_info *wlc = cfg->wlc; 1444 struct wlc_info *wlc = cfg->wlc;
1445 uint aci, i, j; 1445 uint aci, i, j;
@@ -2450,7 +2450,7 @@ static void wlc_watchdog(void *arg)
2450{ 2450{
2451 struct wlc_info *wlc = (struct wlc_info *) arg; 2451 struct wlc_info *wlc = (struct wlc_info *) arg;
2452 int i; 2452 int i;
2453 wlc_bsscfg_t *cfg; 2453 struct wlc_bsscfg *cfg;
2454 2454
2455 WL_TRACE("wl%d: wlc_watchdog\n", wlc->pub->unit); 2455 WL_TRACE("wl%d: wlc_watchdog\n", wlc->pub->unit);
2456 2456
@@ -2566,7 +2566,7 @@ int wlc_up(struct wlc_info *wlc)
2566 if (!mboolisset 2566 if (!mboolisset
2567 (wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE)) { 2567 (wlc->pub->radio_disabled, WL_RADIO_HW_DISABLE)) {
2568 int idx; 2568 int idx;
2569 wlc_bsscfg_t *bsscfg; 2569 struct wlc_bsscfg *bsscfg;
2570 mboolset(wlc->pub->radio_disabled, 2570 mboolset(wlc->pub->radio_disabled,
2571 WL_RADIO_HW_DISABLE); 2571 WL_RADIO_HW_DISABLE);
2572 2572
@@ -3065,7 +3065,7 @@ _wlc_ioctl(struct wlc_info *wlc, int cmd, void *arg, int len,
3065 bool ta_ok; 3065 bool ta_ok;
3066 uint band; 3066 uint band;
3067 rw_reg_t *r; 3067 rw_reg_t *r;
3068 wlc_bsscfg_t *bsscfg; 3068 struct wlc_bsscfg *bsscfg;
3069 wlc_bss_info_t *current_bss; 3069 wlc_bss_info_t *current_bss;
3070 3070
3071 /* update bsscfg pointer */ 3071 /* update bsscfg pointer */
@@ -4506,7 +4506,7 @@ wlc_doiovar(void *hdl, const bcm_iovar_t *vi, u32 actionid,
4506 int val_size, struct wlc_if *wlcif) 4506 int val_size, struct wlc_if *wlcif)
4507{ 4507{
4508 struct wlc_info *wlc = hdl; 4508 struct wlc_info *wlc = hdl;
4509 wlc_bsscfg_t *bsscfg; 4509 struct wlc_bsscfg *bsscfg;
4510 int err = 0; 4510 int err = 0;
4511 s32 int_val = 0; 4511 s32 int_val = 0;
4512 s32 int_val2 = 0; 4512 s32 int_val2 = 0;
@@ -5277,7 +5277,8 @@ void BCMFASTPATH wlc_send_q(struct wlc_info *wlc, struct wlc_txq_info *qi)
5277 * for MC frames so is used as part of the sequence number. 5277 * for MC frames so is used as part of the sequence number.
5278 */ 5278 */
5279static inline u16 5279static inline u16
5280bcmc_fid_generate(struct wlc_info *wlc, wlc_bsscfg_t *bsscfg, d11txh_t *txh) 5280bcmc_fid_generate(struct wlc_info *wlc, struct wlc_bsscfg *bsscfg,
5281 d11txh_t *txh)
5281{ 5282{
5282 u16 frameid; 5283 u16 frameid;
5283 5284
@@ -6378,7 +6379,7 @@ wlc_d11hdrs_mac80211(struct wlc_info *wlc, struct ieee80211_hw *hw,
6378 6379
6379void wlc_tbtt(struct wlc_info *wlc, d11regs_t *regs) 6380void wlc_tbtt(struct wlc_info *wlc, d11regs_t *regs)
6380{ 6381{
6381 wlc_bsscfg_t *cfg = wlc->cfg; 6382 struct wlc_bsscfg *cfg = wlc->cfg;
6382 6383
6383 wlc->pub->_cnt->tbtt++; 6384 wlc->pub->_cnt->tbtt++;
6384 6385
@@ -6514,7 +6515,7 @@ void wlc_high_dpc(struct wlc_info *wlc, u32 macintstatus)
6514 /* delay the cleanup to wl_down in IBSS case */ 6515 /* delay the cleanup to wl_down in IBSS case */
6515 if ((R_REG(&regs->phydebug) & PDBG_RFD)) { 6516 if ((R_REG(&regs->phydebug) & PDBG_RFD)) {
6516 int idx; 6517 int idx;
6517 wlc_bsscfg_t *bsscfg; 6518 struct wlc_bsscfg *bsscfg;
6518 FOREACH_BSS(wlc, idx, bsscfg) { 6519 FOREACH_BSS(wlc, idx, bsscfg) {
6519 if (!BSSCFG_STA(bsscfg) || !bsscfg->enable 6520 if (!BSSCFG_STA(bsscfg) || !bsscfg->enable
6520 || !bsscfg->BSS) 6521 || !bsscfg->BSS)
@@ -7629,7 +7630,7 @@ wlc_compute_bcntsfoff(struct wlc_info *wlc, ratespec_t rspec,
7629 */ 7630 */
7630static void 7631static void
7631wlc_bcn_prb_template(struct wlc_info *wlc, u16 type, ratespec_t bcn_rspec, 7632wlc_bcn_prb_template(struct wlc_info *wlc, u16 type, ratespec_t bcn_rspec,
7632 wlc_bsscfg_t *cfg, u16 *buf, int *len) 7633 struct wlc_bsscfg *cfg, u16 *buf, int *len)
7633{ 7634{
7634 static const u8 ether_bcast[ETH_ALEN] = {255, 255, 255, 255, 255, 255}; 7635 static const u8 ether_bcast[ETH_ALEN] = {255, 255, 255, 255, 255, 255};
7635 cck_phy_hdr_t *plcp; 7636 cck_phy_hdr_t *plcp;
@@ -7696,7 +7697,7 @@ int wlc_get_header_len()
7696 * template updated. 7697 * template updated.
7697 * Otherwise, it updates the hardware template. 7698 * Otherwise, it updates the hardware template.
7698 */ 7699 */
7699void wlc_bss_update_beacon(struct wlc_info *wlc, wlc_bsscfg_t *cfg) 7700void wlc_bss_update_beacon(struct wlc_info *wlc, struct wlc_bsscfg *cfg)
7700{ 7701{
7701 int len = BCN_TMPL_LEN; 7702 int len = BCN_TMPL_LEN;
7702 7703
@@ -7750,7 +7751,7 @@ void wlc_bss_update_beacon(struct wlc_info *wlc, wlc_bsscfg_t *cfg)
7750void wlc_update_beacon(struct wlc_info *wlc) 7751void wlc_update_beacon(struct wlc_info *wlc)
7751{ 7752{
7752 int idx; 7753 int idx;
7753 wlc_bsscfg_t *bsscfg; 7754 struct wlc_bsscfg *bsscfg;
7754 7755
7755 /* update AP or IBSS beacons */ 7756 /* update AP or IBSS beacons */
7756 FOREACH_BSS(wlc, idx, bsscfg) { 7757 FOREACH_BSS(wlc, idx, bsscfg) {
@@ -7760,7 +7761,7 @@ void wlc_update_beacon(struct wlc_info *wlc)
7760} 7761}
7761 7762
7762/* Write ssid into shared memory */ 7763/* Write ssid into shared memory */
7763void wlc_shm_ssid_upd(struct wlc_info *wlc, wlc_bsscfg_t *cfg) 7764void wlc_shm_ssid_upd(struct wlc_info *wlc, struct wlc_bsscfg *cfg)
7764{ 7765{
7765 u8 *ssidptr = cfg->SSID; 7766 u8 *ssidptr = cfg->SSID;
7766 u16 base = M_SSID; 7767 u16 base = M_SSID;
@@ -7779,7 +7780,7 @@ void wlc_shm_ssid_upd(struct wlc_info *wlc, wlc_bsscfg_t *cfg)
7779void wlc_update_probe_resp(struct wlc_info *wlc, bool suspend) 7780void wlc_update_probe_resp(struct wlc_info *wlc, bool suspend)
7780{ 7781{
7781 int idx; 7782 int idx;
7782 wlc_bsscfg_t *bsscfg; 7783 struct wlc_bsscfg *bsscfg;
7783 7784
7784 /* update AP or IBSS probe responses */ 7785 /* update AP or IBSS probe responses */
7785 FOREACH_BSS(wlc, idx, bsscfg) { 7786 FOREACH_BSS(wlc, idx, bsscfg) {
@@ -7789,7 +7790,8 @@ void wlc_update_probe_resp(struct wlc_info *wlc, bool suspend)
7789} 7790}
7790 7791
7791void 7792void
7792wlc_bss_update_probe_resp(struct wlc_info *wlc, wlc_bsscfg_t *cfg, bool suspend) 7793wlc_bss_update_probe_resp(struct wlc_info *wlc, struct wlc_bsscfg *cfg,
7794 bool suspend)
7793{ 7795{
7794 u16 prb_resp[BCN_TMPL_LEN / 2]; 7796 u16 prb_resp[BCN_TMPL_LEN / 2];
7795 int len = BCN_TMPL_LEN; 7797 int len = BCN_TMPL_LEN;
@@ -7867,7 +7869,7 @@ int wlc_prep_pdu(struct wlc_info *wlc, struct sk_buff *pdu, uint *fifop)
7867void wlc_reprate_init(struct wlc_info *wlc) 7869void wlc_reprate_init(struct wlc_info *wlc)
7868{ 7870{
7869 int i; 7871 int i;
7870 wlc_bsscfg_t *bsscfg; 7872 struct wlc_bsscfg *bsscfg;
7871 7873
7872 FOREACH_BSS(wlc, i, bsscfg) { 7874 FOREACH_BSS(wlc, i, bsscfg) {
7873 wlc_bsscfg_reprate_init(bsscfg); 7875 wlc_bsscfg_reprate_init(bsscfg);
@@ -7875,7 +7877,7 @@ void wlc_reprate_init(struct wlc_info *wlc)
7875} 7877}
7876 7878
7877/* per bsscfg init tx reported rate mechanism */ 7879/* per bsscfg init tx reported rate mechanism */
7878void wlc_bsscfg_reprate_init(wlc_bsscfg_t *bsscfg) 7880void wlc_bsscfg_reprate_init(struct wlc_bsscfg *bsscfg)
7879{ 7881{
7880 bsscfg->txrspecidx = 0; 7882 bsscfg->txrspecidx = 0;
7881 memset((char *)bsscfg->txrspec, 0, sizeof(bsscfg->txrspec)); 7883 memset((char *)bsscfg->txrspec, 0, sizeof(bsscfg->txrspec));
diff --git a/drivers/staging/brcm80211/brcmsmac/wlc_main.h b/drivers/staging/brcm80211/brcmsmac/wlc_main.h
index 0eaef07d332..960f82cbfbc 100644
--- a/drivers/staging/brcm80211/brcmsmac/wlc_main.h
+++ b/drivers/staging/brcm80211/brcmsmac/wlc_main.h
@@ -621,11 +621,12 @@ struct wlc_info {
621 u16 tx_prec_map; /* Precedence map based on HW FIFO space */ 621 u16 tx_prec_map; /* Precedence map based on HW FIFO space */
622 u16 fifo2prec_map[NFIFO]; /* pointer to fifo2_prec map based on WME */ 622 u16 fifo2prec_map[NFIFO]; /* pointer to fifo2_prec map based on WME */
623 623
624 /* BSS Configurations */ 624 /*
625 wlc_bsscfg_t *bsscfg[WLC_MAXBSSCFG]; /* set of BSS configurations, idx 0 is default and 625 * BSS Configurations set of BSS configurations, idx 0 is default and
626 * always valid 626 * always valid
627 */ 627 */
628 wlc_bsscfg_t *cfg; /* the primary bsscfg (can be AP or STA) */ 628 struct wlc_bsscfg *bsscfg[WLC_MAXBSSCFG];
629 struct wlc_bsscfg *cfg; /* the primary bsscfg (can be AP or STA) */
629 u8 stas_associated; /* count of ASSOCIATED STA bsscfgs */ 630 u8 stas_associated; /* count of ASSOCIATED STA bsscfgs */
630 u8 aps_associated; /* count of UP AP bsscfgs */ 631 u8 aps_associated; /* count of UP AP bsscfgs */
631 u8 block_datafifo; /* prohibit posting frames to data fifos */ 632 u8 block_datafifo; /* prohibit posting frames to data fifos */
@@ -846,7 +847,7 @@ extern bool wlc_valid_rate(struct wlc_info *wlc, ratespec_t rate, int band,
846extern void wlc_ap_upd(struct wlc_info *wlc); 847extern void wlc_ap_upd(struct wlc_info *wlc);
847 848
848/* helper functions */ 849/* helper functions */
849extern void wlc_shm_ssid_upd(struct wlc_info *wlc, wlc_bsscfg_t *cfg); 850extern void wlc_shm_ssid_upd(struct wlc_info *wlc, struct wlc_bsscfg *cfg);
850extern int wlc_set_gmode(struct wlc_info *wlc, u8 gmode, bool config); 851extern int wlc_set_gmode(struct wlc_info *wlc, u8 gmode, bool config);
851 852
852extern void wlc_mac_bcn_promisc_change(struct wlc_info *wlc, bool promisc); 853extern void wlc_mac_bcn_promisc_change(struct wlc_info *wlc, bool promisc);
@@ -884,7 +885,7 @@ extern void wlc_dump_ie(struct wlc_info *wlc, bcm_tlv_t *ie,
884 885
885extern bool wlc_ps_check(struct wlc_info *wlc); 886extern bool wlc_ps_check(struct wlc_info *wlc);
886extern void wlc_reprate_init(struct wlc_info *wlc); 887extern void wlc_reprate_init(struct wlc_info *wlc);
887extern void wlc_bsscfg_reprate_init(wlc_bsscfg_t *bsscfg); 888extern void wlc_bsscfg_reprate_init(struct wlc_bsscfg *bsscfg);
888extern void wlc_uint64_sub(u32 *a_high, u32 *a_low, u32 b_high, 889extern void wlc_uint64_sub(u32 *a_high, u32 *a_low, u32 b_high,
889 u32 b_low); 890 u32 b_low);
890extern u32 wlc_calc_tbtt_offset(u32 bi, u32 tsf_h, u32 tsf_l); 891extern u32 wlc_calc_tbtt_offset(u32 bi, u32 tsf_h, u32 tsf_l);
@@ -903,8 +904,8 @@ extern void wlc_bss_update_beacon(struct wlc_info *wlc,
903 struct wlc_bsscfg *bsscfg); 904 struct wlc_bsscfg *bsscfg);
904 905
905extern void wlc_update_probe_resp(struct wlc_info *wlc, bool suspend); 906extern void wlc_update_probe_resp(struct wlc_info *wlc, bool suspend);
906extern void wlc_bss_update_probe_resp(struct wlc_info *wlc, wlc_bsscfg_t *cfg, 907extern void wlc_bss_update_probe_resp(struct wlc_info *wlc,
907 bool suspend); 908 struct wlc_bsscfg *cfg, bool suspend);
908 909
909extern bool wlc_ismpc(struct wlc_info *wlc); 910extern bool wlc_ismpc(struct wlc_info *wlc);
910extern bool wlc_is_non_delay_mpc(struct wlc_info *wlc); 911extern bool wlc_is_non_delay_mpc(struct wlc_info *wlc);
@@ -936,14 +937,15 @@ extern void wlc_print_ies(struct wlc_info *wlc, u8 *ies, uint ies_len);
936extern int wlc_set_nmode(struct wlc_info *wlc, s32 nmode); 937extern int wlc_set_nmode(struct wlc_info *wlc, s32 nmode);
937extern void wlc_ht_mimops_cap_update(struct wlc_info *wlc, u8 mimops_mode); 938extern void wlc_ht_mimops_cap_update(struct wlc_info *wlc, u8 mimops_mode);
938extern void wlc_mimops_action_ht_send(struct wlc_info *wlc, 939extern void wlc_mimops_action_ht_send(struct wlc_info *wlc,
939 wlc_bsscfg_t *bsscfg, u8 mimops_mode); 940 struct wlc_bsscfg *bsscfg,
941 u8 mimops_mode);
940 942
941extern void wlc_switch_shortslot(struct wlc_info *wlc, bool shortslot); 943extern void wlc_switch_shortslot(struct wlc_info *wlc, bool shortslot);
942extern void wlc_set_bssid(wlc_bsscfg_t *cfg); 944extern void wlc_set_bssid(struct wlc_bsscfg *cfg);
943extern void wlc_edcf_setparams(wlc_bsscfg_t *cfg, bool suspend); 945extern void wlc_edcf_setparams(struct wlc_bsscfg *cfg, bool suspend);
944 946
945extern void wlc_set_ratetable(struct wlc_info *wlc); 947extern void wlc_set_ratetable(struct wlc_info *wlc);
946extern int wlc_set_mac(wlc_bsscfg_t *cfg); 948extern int wlc_set_mac(struct wlc_bsscfg *cfg);
947extern void wlc_beacon_phytxctl_txant_upd(struct wlc_info *wlc, 949extern void wlc_beacon_phytxctl_txant_upd(struct wlc_info *wlc,
948 ratespec_t bcn_rate); 950 ratespec_t bcn_rate);
949extern void wlc_mod_prb_rsp_rate_table(struct wlc_info *wlc, uint frame_len); 951extern void wlc_mod_prb_rsp_rate_table(struct wlc_info *wlc, uint frame_len);