Lines Matching defs:wlc

112 	struct brcms_c_info *wlc;
312 struct brcms_c_info *wlc = wlc_cm->wlc;
314 if ((wlc->pub->_n_enab & SUPPORT_11N) !=
315 wlc->protection->nmode_user)
316 brcms_c_set_nmode(wlc);
318 brcms_c_stf_ss_update(wlc, wlc->bandstate[BAND_2G_INDEX]);
319 brcms_c_stf_ss_update(wlc, wlc->bandstate[BAND_5G_INDEX]);
321 brcms_c_set_gmode(wlc, wlc->protection->gmode_user, false);
326 struct brcms_cm_info *brcms_c_channel_mgr_attach(struct brcms_c_info *wlc)
329 struct brcms_pub *pub = wlc->pub;
330 struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom;
338 wlc_cm->wlc = wlc;
339 wlc->cmi = wlc_cm;
344 memcpy(wlc->pub->srom_ccode, ccode, ccode_len);
357 memcpy(wlc->country_default, ccode, ccode_len);
360 memcpy(wlc->autocountry_default, ccode, ccode_len);
376 struct brcms_c_info *wlc = wlc_cm->wlc;
377 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan;
388 brcms_c_set_gmode(wlc, GMODE_LEGACY_B, false);
390 brcms_c_set_gmode(wlc, wlc->protection->gmode_user, false);
392 brcms_b_set_chanspec(wlc->hw, chanspec,
401 struct brcms_c_info *wlc = wlc_cm->wlc;
402 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan;
423 band = wlc->bandstate[chspec_bandunit(chanspec)];
604 struct brcms_c_info *wlc = wlc_cm->wlc;
609 brcms_err(wlc->hw->d11core, "wl%d: malformed chanspec 0x%x\n",
610 wlc->pub->unit, chspec);
614 if (CHANNEL_BANDUNIT(wlc_cm->wlc, channel) !=
698 struct brcms_c_info *wlc = wl->wlc;
724 mboolclr(wlc->pub->radio_disabled, WL_RADIO_COUNTRY_DISABLE);
726 mboolset(wlc->pub->radio_disabled, WL_RADIO_COUNTRY_DISABLE);
727 brcms_err(wlc->hw->d11core,
729 wlc->pub->unit, __func__, request->alpha2);
732 if (wlc->pub->_nbands > 1 || wlc->band->bandtype == BRCM_BAND_2G)
733 wlc_phy_chanspec_ch14_widefilter_set(wlc->band->pi,
737 void brcms_c_regd_init(struct brcms_c_info *wlc)
739 struct wiphy *wiphy = wlc->wiphy;
740 const struct brcms_regd *regd = wlc->cmi->world_regd;
748 for (band_idx = 0; band_idx < wlc->pub->_nbands; band_idx++) {
749 band = wlc->bandstate[band_idx];
766 wlc->wiphy->reg_notifier = brcms_reg_notifier;
767 wlc->wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG |
769 wiphy_apply_custom_regulatory(wlc->wiphy, regd->regdomain);