Lines Matching defs:chanspec
920 brcms_c_channel_reg_limits(wlc_cm, wlc->chanspec, &txpwr);
923 wlc_phy_txpower_limit_set(wlc->band->pi, &txpwr, wlc->chanspec);
1139 brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec,
1145 brcms_c_channel_reg_limits(wlc_cm, chanspec, &txpwr);
1151 brcms_b_set_chanspec(wlc->hw, chanspec,
1152 (brcms_c_quiet_chanspec(wlc_cm, chanspec) != 0),
1157 brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec,
1177 if (!brcms_c_valid_chanspec_db(wlc_cm, chanspec)) {
1185 chan = CHSPEC_CHANNEL(chanspec);
1186 band = wlc->bandstate[chspec_bandunit(chanspec)];
1370 * Verify the chanspec is using a legal set of parameters, i.e. that the
1371 * chanspec specified a band, bw, ctl_sb and channel and that the
1373 * RETURNS: true is the chanspec is malformed, false if it looks good.
1375 static bool brcms_c_chspec_malformed(u16 chanspec)
1378 if (!CHSPEC_IS5G(chanspec) && !CHSPEC_IS2G(chanspec))
1381 if (!CHSPEC_IS40(chanspec) && !CHSPEC_IS20(chanspec))
1385 if (CHSPEC_IS20(chanspec)) {
1386 if (!CHSPEC_SB_NONE(chanspec))
1388 } else if (!CHSPEC_SB_UPPER(chanspec) && !CHSPEC_SB_LOWER(chanspec)) {
1396 * Validate the chanspec for this locale, for 40MHZ we need to also
1407 /* check the chanspec */
1409 wiphy_err(wlc->wiphy, "wl%d: malformed chanspec 0x%x\n",