Lines Matching refs:wlc

112 	struct brcms_c_info *wlc;  member
312 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_set_country() local
314 if ((wlc->pub->_n_enab & SUPPORT_11N) != in brcms_c_set_country()
315 wlc->protection->nmode_user) in brcms_c_set_country()
316 brcms_c_set_nmode(wlc); in brcms_c_set_country()
318 brcms_c_stf_ss_update(wlc, wlc->bandstate[BAND_2G_INDEX]); in brcms_c_set_country()
319 brcms_c_stf_ss_update(wlc, wlc->bandstate[BAND_5G_INDEX]); in brcms_c_set_country()
321 brcms_c_set_gmode(wlc, wlc->protection->gmode_user, false); in brcms_c_set_country()
326 struct brcms_cm_info *brcms_c_channel_mgr_attach(struct brcms_c_info *wlc) in brcms_c_channel_mgr_attach() argument
329 struct brcms_pub *pub = wlc->pub; in brcms_c_channel_mgr_attach()
330 struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; in brcms_c_channel_mgr_attach()
338 wlc_cm->wlc = wlc; in brcms_c_channel_mgr_attach()
339 wlc->cmi = wlc_cm; in brcms_c_channel_mgr_attach()
344 strncpy(wlc->pub->srom_ccode, ccode, ccode_len); in brcms_c_channel_mgr_attach()
357 strncpy(wlc->country_default, ccode, ccode_len); in brcms_c_channel_mgr_attach()
360 strncpy(wlc->autocountry_default, ccode, ccode_len); in brcms_c_channel_mgr_attach()
376 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_channel_set_chanspec() local
377 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_channel_set_chanspec()
388 brcms_c_set_gmode(wlc, GMODE_LEGACY_B, false); in brcms_c_channel_set_chanspec()
390 brcms_c_set_gmode(wlc, wlc->protection->gmode_user, false); in brcms_c_channel_set_chanspec()
392 brcms_b_set_chanspec(wlc->hw, chanspec, in brcms_c_channel_set_chanspec()
401 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_channel_reg_limits() local
402 struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; in brcms_c_channel_reg_limits()
423 band = wlc->bandstate[chspec_bandunit(chanspec)]; in brcms_c_channel_reg_limits()
606 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_valid_chanspec_ext() local
611 brcms_err(wlc->hw->d11core, "wl%d: malformed chanspec 0x%x\n", in brcms_c_valid_chanspec_ext()
612 wlc->pub->unit, chspec); in brcms_c_valid_chanspec_ext()
616 if (CHANNEL_BANDUNIT(wlc_cm->wlc, channel) != in brcms_c_valid_chanspec_ext()
701 struct brcms_c_info *wlc = wl->wlc; in brcms_reg_notifier() local
727 mboolclr(wlc->pub->radio_disabled, WL_RADIO_COUNTRY_DISABLE); in brcms_reg_notifier()
729 mboolset(wlc->pub->radio_disabled, WL_RADIO_COUNTRY_DISABLE); in brcms_reg_notifier()
730 brcms_err(wlc->hw->d11core, in brcms_reg_notifier()
732 wlc->pub->unit, __func__, request->alpha2); in brcms_reg_notifier()
735 if (wlc->pub->_nbands > 1 || wlc->band->bandtype == BRCM_BAND_2G) in brcms_reg_notifier()
736 wlc_phy_chanspec_ch14_widefilter_set(wlc->band->pi, in brcms_reg_notifier()
740 void brcms_c_regd_init(struct brcms_c_info *wlc) in brcms_c_regd_init() argument
742 struct wiphy *wiphy = wlc->wiphy; in brcms_c_regd_init()
743 const struct brcms_regd *regd = wlc->cmi->world_regd; in brcms_c_regd_init()
751 for (band_idx = 0; band_idx < wlc->pub->_nbands; band_idx++) { in brcms_c_regd_init()
752 band = wlc->bandstate[band_idx]; in brcms_c_regd_init()
769 wlc->wiphy->reg_notifier = brcms_reg_notifier; in brcms_c_regd_init()
770 wlc->wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG | in brcms_c_regd_init()
772 wiphy_apply_custom_regulatory(wlc->wiphy, regd->regdomain); in brcms_c_regd_init()