Lines Matching refs:chanspec
417 static int brcms_chspec_bw(u16 chanspec) in brcms_chspec_bw() argument
419 if (CHSPEC_IS40(chanspec)) in brcms_chspec_bw()
421 if (CHSPEC_IS20(chanspec)) in brcms_chspec_bw()
914 CHSPEC_CHANNEL(wlc->default_bss->chanspec)); in brcms_c_dotxstatus()
1220 wlc_hw->chanspec = ch20mhz_chspec(1); in brcms_b_info_init()
1695 static void brcms_b_bsinit(struct brcms_c_info *wlc, u16 chanspec) in brcms_b_bsinit() argument
1704 wlc_phy_init(wlc_hw->band->pi, chanspec); in brcms_b_bsinit()
1813 u16 chanspec) { in brcms_b_setband() argument
1831 brcms_b_bsinit(wlc, chanspec); in brcms_b_setband()
3335 static void brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec) in brcms_b_init() argument
3350 brcms_c_setxband(wlc_hw, chspec_bandunit(chanspec)); in brcms_b_init()
3351 wlc_phy_chanspec_radio_set(wlc_hw->band->pi, chanspec); in brcms_b_init()
3360 brcms_b_bsinit(wlc, chanspec); in brcms_b_init()
3382 u16 chanspec) in brcms_c_set_phy_chanspec() argument
3385 wlc->chanspec = chanspec; in brcms_c_set_phy_chanspec()
3388 brcms_c_channel_set_chanspec(wlc->cmi, chanspec, BRCMS_TXPWR_MAX); in brcms_c_set_phy_chanspec()
3392 chanspec); in brcms_c_set_phy_chanspec()
3403 brcms_chspec_bw(wlc->default_bss->chanspec), in brcms_default_rateset()
3503 u16 chanspec) in brcms_c_bandinit_ordered() argument
3519 parkband = chspec_bandunit(chanspec); in brcms_c_bandinit_ordered()
3544 brcms_c_set_phy_chanspec(wlc, chanspec); in brcms_c_bandinit_ordered()
3818 static void brcms_c_set_home_chanspec(struct brcms_c_info *wlc, u16 chanspec) in brcms_c_set_home_chanspec() argument
3820 if (wlc->home_chanspec != chanspec) { in brcms_c_set_home_chanspec()
3821 wlc->home_chanspec = chanspec; in brcms_c_set_home_chanspec()
3824 wlc->bsscfg->current_bss->chanspec = chanspec; in brcms_c_set_home_chanspec()
3829 brcms_b_set_chanspec(struct brcms_hardware *wlc_hw, u16 chanspec, in brcms_b_set_chanspec() argument
3835 chanspec); in brcms_b_set_chanspec()
3837 wlc_hw->chanspec = chanspec; in brcms_b_set_chanspec()
3841 bandunit = chspec_bandunit(chanspec); in brcms_b_set_chanspec()
3849 pi, chanspec); in brcms_b_set_chanspec()
3850 brcms_b_setband(wlc_hw, bandunit, chanspec); in brcms_b_set_chanspec()
3862 chanspec); in brcms_b_set_chanspec()
3863 wlc_phy_chanspec_radio_set(wlc_hw->band->pi, chanspec); in brcms_b_set_chanspec()
3865 wlc_phy_chanspec_set(wlc_hw->band->pi, chanspec); in brcms_b_set_chanspec()
3866 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, chanspec); in brcms_b_set_chanspec()
3889 static void brcms_c_set_chanspec(struct brcms_c_info *wlc, u16 chanspec) in brcms_c_set_chanspec() argument
3892 u16 old_chanspec = wlc->chanspec; in brcms_c_set_chanspec()
3894 if (!brcms_c_valid_chanspec_db(wlc->cmi, chanspec)) { in brcms_c_set_chanspec()
3896 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); in brcms_c_set_chanspec()
3902 bandunit = chspec_bandunit(chanspec); in brcms_c_set_chanspec()
3908 CHSPEC_CHANNEL(chanspec)); in brcms_c_set_chanspec()
3924 brcms_c_set_phy_chanspec(wlc, chanspec); in brcms_c_set_chanspec()
3927 if (brcms_chspec_bw(old_chanspec) != brcms_chspec_bw(chanspec)) { in brcms_c_set_chanspec()
3934 wlc->band->mimo_cap_40 ? brcms_chspec_bw(chanspec) : 0); in brcms_c_set_chanspec()
4293 wlc->chanspec = ch20mhz_chspec(1); in brcms_c_info_init()
4730 u16 chanspec; in brcms_c_bss_default_init() local
4741 chanspec = ch20mhz_chspec(1); in brcms_c_bss_default_init()
4742 wlc->home_chanspec = bi->chanspec = chanspec; in brcms_c_bss_default_init()
4747 band->bandunit != chspec_bandunit(chanspec)) in brcms_c_bss_default_init()
4754 brcms_chspec_bw(chanspec), wlc->stf->txstreams); in brcms_c_bss_default_init()
5392 wlc->default_bss->chanspec = chspec; in brcms_c_set_channel()
6331 if (brcms_chspec_bw(wlc->chanspec) == BRCMS_40_MHZ) { in brcms_c_d11hdrs_mac80211()
7800 u16 chanspec; in brcms_c_init() local
7804 chanspec = ch20mhz_chspec(ch->hw_value); in brcms_c_init()
7806 brcms_b_init(wlc->hw, chanspec); in brcms_c_init()
7832 brcms_c_bandinit_ordered(wlc, chanspec); in brcms_c_init()