Lines Matching full:band
189 /* values for band specific 40MHz capabilities */
355 return wlc->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK] in brcms_basic_rate()
357 return wlc->band->basic_rate[rspec & RSPEC_RATE_MASK]; in brcms_basic_rate()
367 /* currently the best mechanism for determining SIFS is the band in use */
368 static u16 get_sifs(struct brcms_band *band) in get_sifs() argument
370 return band->bandtype == BRCM_BAND_5G ? APHY_SIFS_TIME : in get_sifs()
643 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time()
655 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time()
714 brcms_c_write_mhf(wlc_hw, wlc_hw->band->mhfs); in brcms_c_ucode_bsinit()
716 /* do band-specific ucode IHR, SHM, and SCR inits */ in brcms_c_ucode_bsinit()
718 if (BRCMS_ISNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit()
727 if (BRCMS_ISLCNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit()
775 /* low-level band switch utility routine */
781 wlc_hw->band = wlc_hw->bandstate[bandunit]; in brcms_c_setxband()
785 * until we eliminate need for wlc->band refs in low level code in brcms_c_setxband()
787 wlc_hw->wlc->band = wlc_hw->wlc->bandstate[bandunit]; in brcms_c_setxband()
800 /* switch to new band but leave it inactive */
816 wlc_phy_switch_radio(wlc_hw->band->pi, OFF); in brcms_c_setband_inact()
1083 if (BRCMS_ISNPHY(wlc_hw->band) && NREV_LT(wlc_hw->band->phyrev, 2)) { in brcms_c_mhfdef()
1102 * ucode host flag 2 needed for pio mode, independent of band and fifo in brcms_b_attach_dmapio()
1175 brcms_c_mhfdef(wlc, wlc_hw->band->mhfs, pio_mhf2); in brcms_b_attach_dmapio()
1307 * bands values are: BRCM_BAND_AUTO <--- Current band only
1308 * BRCM_BAND_5G <--- 5G band only
1309 * BRCM_BAND_2G <--- 2G band only
1321 struct brcms_hw_band *band; in brcms_b_mhf() local
1327 /* Current band only or all bands, in brcms_b_mhf()
1328 * then set the band to current band in brcms_b_mhf()
1332 band = wlc_hw->band; in brcms_b_mhf()
1335 band = wlc_hw->bandstate[BAND_5G_INDEX]; in brcms_b_mhf()
1338 band = wlc_hw->bandstate[BAND_2G_INDEX]; in brcms_b_mhf()
1341 band = NULL; /* error condition */ in brcms_b_mhf()
1344 if (band) { in brcms_b_mhf()
1345 save = band->mhfs[idx]; in brcms_b_mhf()
1346 band->mhfs[idx] = (band->mhfs[idx] & ~mask) | val; in brcms_b_mhf()
1349 * changed band is the current band in brcms_b_mhf()
1351 if (wlc_hw->clk && (band->mhfs[idx] != save) in brcms_b_mhf()
1352 && (band == wlc_hw->band)) in brcms_b_mhf()
1354 (u16) band->mhfs[idx]); in brcms_b_mhf()
1549 wlc_hw->band->CWmin = newmin; in brcms_b_set_cwmin()
1559 wlc_hw->band->CWmax = newmax; in brcms_b_set_cwmax()
1576 wlc_phy_bw_state_set(wlc_hw->band->pi, bw); in brcms_b_bw_set()
1579 wlc_phy_init(wlc_hw->band->pi, wlc_phy_chanspec_get(wlc_hw->band->pi)); in brcms_b_bw_set()
1592 if (BRCMS_ISLCNPHY(wlc->band)) in brcms_b_upd_synthpu()
1594 else if (BRCMS_ISNPHY(wlc->band) && (NREV_GE(wlc->band->phyrev, 3))) in brcms_b_upd_synthpu()
1664 if (!BRCMS_PHY_11N_CAP(wlc_hw->band)) in brcms_upd_ofdm_pctl1_table()
1687 /* band-specific init */
1693 wlc_hw->band->bandunit); in brcms_b_bsinit()
1697 wlc_phy_init(wlc_hw->band->pi, chanspec); in brcms_b_bsinit()
1702 * cwmin is band-specific, update hardware in brcms_b_bsinit()
1703 * with value for current band in brcms_b_bsinit()
1705 brcms_b_set_cwmin(wlc_hw, wlc_hw->band->CWmin); in brcms_b_bsinit()
1706 brcms_b_set_cwmax(wlc_hw, wlc_hw->band->CWmax); in brcms_b_bsinit()
1709 wlc_hw->band->bandtype == BRCM_BAND_5G ? in brcms_b_bsinit()
1713 brcms_b_write_shm(wlc_hw, M_PHYTYPE, (u16) wlc_hw->band->phytype); in brcms_b_bsinit()
1714 brcms_b_write_shm(wlc_hw, M_PHYVER, (u16) wlc_hw->band->phyrev); in brcms_b_bsinit()
1748 if (!BRCMS_ISNPHY(wlc_hw->band)) in brcms_b_phyclk_fgc()
1768 struct brcms_phy_pub *pih = wlc_hw->band->pi; in brcms_b_phy_reset()
1776 phy_bw_clkbits = wlc_phy_clk_bwbits(wlc_hw->band->pi); in brcms_b_phy_reset()
1779 if (BRCMS_ISNPHY(wlc_hw->band) && NREV_GE(wlc_hw->band->phyrev, 3) && in brcms_b_phy_reset()
1780 NREV_LE(wlc_hw->band->phyrev, 4)) { in brcms_b_phy_reset()
1804 /* switch to and initialize new band */
1823 /* band-specific initializations */ in brcms_b_setband()
1915 if (wlc_hw->band && wlc_hw->band->pi) in brcms_b_xtal()
1916 wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false); in brcms_b_xtal()
1990 flags = (wlc_hw->band->pi ? wlc_hw->band->core_flags : 0); in brcms_b_corereset()
2023 * band->pi is invalid. need to enable PHY CLK in brcms_b_corereset()
2041 if (wlc_hw->band && wlc_hw->band->pi) in brcms_b_corereset()
2042 wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, true); in brcms_b_corereset()
2141 } else if (BRCMS_ISLCNPHY(wlc_hw->band)) { in brcms_b_switch_macfreq()
2206 wlc_phy_antsel_init(wlc_hw->band->pi, false); in brcms_c_gpio_init()
2268 if (BRCMS_ISNPHY(wlc_hw->band)) { in brcms_ucode_download()
2277 if (BRCMS_ISLCNPHY(wlc_hw->band)) { in brcms_ucode_download()
2311 wlc_phy_antsel_type_set(wlc_hw->band->pi, antsel_type); in brcms_b_antsel_type_set()
2440 if (BRCMS_PHY_11N_CAP(wlc_hw->band)) in brcms_b_tx_fifo_suspend()
2445 if (BRCMS_PHY_11N_CAP(wlc_hw->band)) in brcms_b_tx_fifo_suspend()
2498 wlc_phy_mute_upd(wlc_hw->band->pi, mute_tx, 0); in brcms_b_mute()
2630 wlc_hw->band->bandunit); in brcms_c_suspend_mac_and_wait()
2698 wlc->band->bandunit); in brcms_c_enable_mac()
2864 wlc_phy_switch_radio(wlc_hw->band->pi, OFF); in brcms_c_coredisable()
2867 wlc_phy_anacore(wlc_hw->band->pi, OFF); in brcms_c_coredisable()
2874 wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false); in brcms_c_coredisable()
3195 if (BRCMS_ISNPHY(wlc_hw->band)) in brcms_b_coreinit()
3202 if (BRCMS_ISLCNPHY(wlc_hw->band)) in brcms_b_coreinit()
3258 /* band-specific inits done by wlc_bsinit() */ in brcms_b_coreinit()
3342 /* set up the specified band and chanspec */ in brcms_b_init()
3344 wlc_phy_chanspec_radio_set(wlc_hw->band->pi, chanspec); in brcms_b_init()
3347 wlc_phy_cal_init(wlc_hw->band->pi); in brcms_b_init()
3352 /* band-specific inits */ in brcms_b_init()
3387 brcms_c_stf_ss_update(wlc, wlc->band); in brcms_c_set_phy_chanspec()
3393 brcms_c_rateset_default(rs, NULL, wlc->band->phytype, in brcms_default_rateset()
3394 wlc->band->bandtype, false, BRCMS_RATE_MASK_FULL, in brcms_default_rateset()
3400 /* derive wlc->band->basic_rate[] table from 'rateset' */
3408 u8 *br = wlc->band->basic_rate; in brcms_c_rate_lookup_init()
3442 * basic_rate = wlc->band->basic_rate[tx_rate] in brcms_c_rate_lookup_init()
3449 for (i = 0; i < wlc->band->hw_rateset.count; i++) { in brcms_c_rate_lookup_init()
3450 rate = wlc->band->hw_rateset.rates[i]; in brcms_c_rate_lookup_init()
3504 * power-cycled (hibernate). Figure out the right band to park on in brcms_c_bandinit_ordered()
3508 parkband = wlc->band->bandunit; in brcms_c_bandinit_ordered()
3511 /* park on the band of the specified chanspec */ in brcms_c_bandinit_ordered()
3519 /* make each band operational, software state init */ in brcms_c_bandinit_ordered()
3523 wlc->band = wlc->bandstate[j]; in brcms_c_bandinit_ordered()
3528 brcms_c_rateset_filter(&default_rateset, &wlc->band->hw_rateset, in brcms_c_bandinit_ordered()
3577 if (wlc->home_chanspec == wlc_phy_chanspec_get(wlc->band->pi)) { in brcms_c_ucode_mac_upd()
3588 if (BRCMS_PHY_11N_CAP(wlc->band)) in brcms_c_ucode_mac_upd()
3636 if (BRCMS_PHY_11N_CAP(wlc->band)) { in brcms_c_rateset_get_hwrs()
3637 if (wlc->band->bandtype == BRCM_BAND_5G) in brcms_c_rateset_get_hwrs()
3641 } else if (wlc->band->gmode) in brcms_c_rateset_get_hwrs()
3679 /* band-specific init */
3683 wlc->pub->unit, wlc->band->bandunit); in brcms_c_bsinit()
3688 /* update some band specific mac configuration */ in brcms_c_bsinit()
3786 if (wlc_hw->band->bandtype == BRCM_BAND_2G && wlc_hw->up) { in brcms_b_set_shortslot()
3835 if (wlc_hw->band->bandunit != bandunit) { in brcms_b_set_chanspec()
3837 * use light band switch if not up yet in brcms_b_set_chanspec()
3850 wlc_phy_initcal_enable(wlc_hw->band->pi, !mute_tx); in brcms_b_set_chanspec()
3854 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, in brcms_b_set_chanspec()
3856 wlc_phy_chanspec_radio_set(wlc_hw->band->pi, chanspec); in brcms_b_set_chanspec()
3858 wlc_phy_chanspec_set(wlc_hw->band->pi, chanspec); in brcms_b_set_chanspec()
3859 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, chanspec); in brcms_b_set_chanspec()
3866 /* switch to and initialize new band */
3870 wlc->band = wlc->bandstate[bandunit]; in brcms_c_setband()
3878 /* band-specific initializations */ in brcms_c_setband()
3896 if (wlc->band->bandunit != bandunit || wlc->bandinit_pending) { in brcms_c_set_chanspec()
3899 "wl%d: %s: chspec %d band is locked!\n", in brcms_c_set_chanspec()
3909 * band, or the following brcms_b_set_chanspec() may in brcms_c_set_chanspec()
3926 brcms_c_rateset_bw_mcs_filter(&wlc->band->hw_rateset, in brcms_c_set_chanspec()
3927 wlc->band->mimo_cap_40 ? brcms_chspec_bw(chanspec) : 0); in brcms_c_set_chanspec()
3948 if (BRCMS_PHY_11N_CAP(wlc->band)) in brcms_c_beacon_phytxctl_txant_upd()
4025 wlc_phy_ldpc_override_set(wlc->band->pi, (val ? true : false)); in brcms_c_ht_update_ldpc()
4203 wlc_phy_watchdog(wlc_hw->band->pi); in brcms_b_watchdog()
4238 if (BRCMS_ISNPHY(wlc->band) && in brcms_c_watchdog()
4371 * initialize software state for each core and band
4400 wlc_hw->band = wlc_hw->bandstate[0]; in brcms_b_attach()
4540 /* initialize software state for each core and band */ in brcms_b_attach()
4549 wlc_hw->band->bandunit = j; in brcms_b_attach()
4550 wlc_hw->band->bandtype = j ? BRCM_BAND_5G : BRCM_BAND_2G; in brcms_b_attach()
4551 wlc->band->bandunit = j; in brcms_b_attach()
4552 wlc->band->bandtype = j ? BRCM_BAND_5G : BRCM_BAND_2G; in brcms_b_attach()
4566 /* Get a phy for this band */ in brcms_b_attach()
4567 wlc_hw->band->pi = in brcms_b_attach()
4569 wlc_hw->band->bandtype, in brcms_b_attach()
4571 if (wlc_hw->band->pi == NULL) { in brcms_b_attach()
4578 wlc_phy_machwcap_set(wlc_hw->band->pi, wlc_hw->machwcap); in brcms_b_attach()
4580 wlc_phy_get_phyversion(wlc_hw->band->pi, &wlc_hw->band->phytype, in brcms_b_attach()
4581 &wlc_hw->band->phyrev, in brcms_b_attach()
4582 &wlc_hw->band->radioid, in brcms_b_attach()
4583 &wlc_hw->band->radiorev); in brcms_b_attach()
4584 wlc_hw->band->abgphy_encore = in brcms_b_attach()
4585 wlc_phy_get_encore(wlc_hw->band->pi); in brcms_b_attach()
4586 wlc->band->abgphy_encore = wlc_phy_get_encore(wlc_hw->band->pi); in brcms_b_attach()
4587 wlc_hw->band->core_flags = in brcms_b_attach()
4588 wlc_phy_get_coreflags(wlc_hw->band->pi); in brcms_b_attach()
4591 if (BRCMS_ISNPHY(wlc_hw->band)) { in brcms_b_attach()
4592 if (NCONF_HAS(wlc_hw->band->phyrev)) in brcms_b_attach()
4596 } else if (BRCMS_ISLCNPHY(wlc_hw->band)) { in brcms_b_attach()
4597 if (LCNCONF_HAS(wlc_hw->band->phyrev)) in brcms_b_attach()
4605 wlc_hw->band->phytype, wlc_hw->band->phyrev); in brcms_b_attach()
4612 * BMAC_NOTE: wlc->band->pi should not be set below and should in brcms_b_attach()
4615 * wlc_hw->band->pi. Instead do the wlc->band->pi init below, in brcms_b_attach()
4616 * keeping wlc_hw->band->pi as well for incremental update of in brcms_b_attach()
4620 wlc->band->pi = wlc_hw->band->pi; in brcms_b_attach()
4621 wlc->band->phytype = wlc_hw->band->phytype; in brcms_b_attach()
4622 wlc->band->phyrev = wlc_hw->band->phyrev; in brcms_b_attach()
4623 wlc->band->radioid = wlc_hw->band->radioid; in brcms_b_attach()
4624 wlc->band->radiorev = wlc_hw->band->radiorev; in brcms_b_attach()
4626 wlc->band->phytype, wlc->band->phyrev, in brcms_b_attach()
4627 wlc->band->radioid, wlc->band->radiorev); in brcms_b_attach()
4629 wlc_hw->band->CWmin = APHY_CWMIN; in brcms_b_attach()
4630 wlc_hw->band->CWmax = PHY_CWMAX; in brcms_b_attach()
4688 bandtype = wlc->band->bandtype; in brcms_c_attach_stf_ant_init()
4714 wlc->band->antgain = sprom->antenna_gain.a1; in brcms_c_attach_stf_ant_init()
4716 wlc->band->antgain = sprom->antenna_gain.a0; in brcms_c_attach_stf_ant_init()
4724 struct brcms_band *band; in brcms_c_bss_default_init() local
4737 /* find the band of our default channel */ in brcms_c_bss_default_init()
4738 band = wlc->band; in brcms_c_bss_default_init()
4740 band->bandunit != chspec_bandunit(chanspec)) in brcms_c_bss_default_init()
4741 band = wlc->bandstate[OTHERBANDUNIT(wlc)]; in brcms_c_bss_default_init()
4743 /* init bss rates to the band specific default rate set */ in brcms_c_bss_default_init()
4744 brcms_c_rateset_default(&bi->rateset, NULL, band->phytype, in brcms_c_bss_default_init()
4745 band->bandtype, false, BRCMS_RATE_MASK_FULL, in brcms_c_bss_default_init()
4756 struct brcms_band *band; in brcms_c_update_mimo_band_bwcap() local
4759 band = wlc->bandstate[i]; in brcms_c_update_mimo_band_bwcap()
4760 if (band->bandtype == BRCM_BAND_5G) { in brcms_c_update_mimo_band_bwcap()
4763 band->mimo_cap_40 = true; in brcms_c_update_mimo_band_bwcap()
4765 band->mimo_cap_40 = false; in brcms_c_update_mimo_band_bwcap()
4768 band->mimo_cap_40 = true; in brcms_c_update_mimo_band_bwcap()
4770 band->mimo_cap_40 = false; in brcms_c_update_mimo_band_bwcap()
4809 struct brcms_hw_band *band; in brcms_b_detach() local
4814 band = wlc_hw->band; in brcms_b_detach()
4816 if (band->pi) { in brcms_b_detach()
4817 /* Detach this band's phy */ in brcms_b_detach()
4818 wlc_phy_detach(band->pi); in brcms_b_detach()
4819 band->pi = NULL; in brcms_b_detach()
4821 band = wlc_hw->bandstate[OTHERBANDUNIT(wlc)]; in brcms_b_detach()
4903 wlc_phy_por_inform(wlc_hw->band->pi); in brcms_b_hw_up()
4959 wlc_phy_hw_state_upd(wlc_hw->band->pi, true); in brcms_b_up_finish()
5100 callbacks += wlc_phy_down(wlc_hw->band->pi); in brcms_b_bmac_down_prep()
5114 wlc_phy_hw_state_upd(wlc_hw->band->pi, false); in brcms_b_down_finish()
5121 wlc_phy_hw_clk_state_upd(wlc_hw->band->pi, false); in brcms_b_down_finish()
5191 wlc_phy_mute_upd(wlc->band->pi, false, PHY_MUTE_ALL); in brcms_c_down()
5212 struct brcms_band *band; in brcms_c_set_gmode() local
5220 /* verify that we are dealing with 2G band and grab the band pointer */ in brcms_c_set_gmode()
5221 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_set_gmode()
5222 band = wlc->band; in brcms_c_set_gmode()
5225 band = wlc->bandstate[OTHERBANDUNIT(wlc)]; in brcms_c_set_gmode()
5266 band->gmode = gmode; in brcms_c_set_gmode()
5331 /* try the current band */ in brcms_c_set_internal_rateset()
5332 bandunit = wlc->band->bandunit; in brcms_c_set_internal_rateset()
5339 /* try the other band */ in brcms_c_set_internal_rateset()
5364 wlc_phy_ofdm_rateset_war(wlc->band->pi, false); in brcms_c_ofdm_rateset_war()
5379 if (wlc->band->bandunit != chspec_bandunit(chspec)) in brcms_c_set_channel()
5388 if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { in brcms_c_set_channel()
5503 return wlc->band->phytype; in brcms_c_get_phy_type()
5512 * currently on the 5G band in brcms_c_set_shortslot_override()
5514 if (wlc->band->bandtype == BRCM_BAND_5G) in brcms_c_set_shortslot_override()
5730 sifs = get_sifs(wlc->band); in brcms_c_compute_frame_dur()
5760 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_len()
5791 * Return true if the specified rate is supported by the specified band.
5792 * BRCM_BAND_AUTO indicates the current band.
5794 static bool brcms_c_valid_rate(struct brcms_c_info *wlc, u32 rspec, int band, in brcms_c_valid_rate() argument
5800 if ((band == BRCM_BAND_AUTO) || (band == wlc->band->bandtype)) in brcms_c_valid_rate()
5801 hw_rateset = &wlc->band->hw_rateset; in brcms_c_valid_rate()
5805 /* other band specified and we are a single band device */ in brcms_c_valid_rate()
6066 sifs = get_sifs(wlc->band); in brcms_c_compute_rtscts_dur()
6098 if (BRCMS_ISLCNPHY(wlc->band)) { in brcms_c_phytxctl1_calc()
6117 } else if (is_cck_rate(rspec) && !BRCMS_ISLCNPHY(wlc->band) in brcms_c_phytxctl1_calc()
6118 && !BRCMS_ISSSLPNPHY(wlc->band)) { in brcms_c_phytxctl1_calc()
6249 hw->wiphy->bands[tx_info->band]->n_bitrates)) { in brcms_c_d11hdrs_mac80211()
6251 hw->wiphy->bands[tx_info->band]-> in brcms_c_d11hdrs_mac80211()
6257 rspec[k] = mac80211_wlc_set_nrate(wlc, wlc->band, in brcms_c_d11hdrs_mac80211()
6328 wlc->band->pi)) in brcms_c_d11hdrs_mac80211()
6409 if (BRCMS_ISNPHY(wlc->band) && is_ofdm_rate(rspec[k])) { in brcms_c_d11hdrs_mac80211()
6479 if (wlc->band->bandtype == BRCM_BAND_5G) in brcms_c_d11hdrs_mac80211()
6482 if (CHSPEC_IS40(wlc_phy_chanspec_get(wlc->band->pi))) in brcms_c_d11hdrs_mac80211()
6644 xfts |= CHSPEC_CHANNEL(wlc_phy_chanspec_get(wlc->band->pi)) << in brcms_c_d11hdrs_mac80211()
6661 if (BRCMS_PHY_11N_CAP(wlc->band)) { in brcms_c_d11hdrs_mac80211()
6893 else if (wlc->band->gmode && wlc->protection->_g && !is_cck_rate(rspec)) in brcms_c_rspec_to_rts_rspec()
6909 if (BRCMS_PHY_11N_CAP(wlc->band)) { in brcms_c_rspec_to_rts_rspec()
6910 /* set rts txbw to correct side band */ in brcms_c_rspec_to_rts_rspec()
7006 rx_status->band = in prep_mac80211_status()
7009 ieee80211_channel_to_frequency(channel, rx_status->band); in prep_mac80211_status()
7011 rx_status->signal = wlc_phy_rssi_compute(wlc->hw->band->pi, rxh); in prep_mac80211_status()
7074 if (rx_status->band == NL80211_BAND_5GHZ) in prep_mac80211_status()
7190 sifs = get_sifs(wlc->band); in brcms_c_mod_prb_rsp_rate_table()
7481 wlc_phy_hold_upd(wlc->band->pi, PHY_HOLD_FOR_SCAN, true); in brcms_c_scan_start()
7486 wlc_phy_hold_upd(wlc->band->pi, PHY_HOLD_FOR_SCAN, false); in brcms_c_scan_stop()
7514 return wlc->band->bandunit; in brcms_c_get_curband()
7572 return wlc_phy_txpower_set(wlc->band->pi, qdbm, false); in brcms_c_set_tx_power()
7580 wlc_phy_txpower_get(wlc->band->pi, &qdbm, &override); in brcms_c_get_tx_power()
7755 wlc_phy_noise_sample_intr(wlc_hw->band->pi); in brcms_c_dpc()
7845 /* band-specific inits */ in brcms_c_init()
7911 wlc->band = wlc->bandstate[0]; in brcms_c_attach()
7935 pub->phy_11ncapable = BRCMS_PHY_11N_CAP(wlc->band); in brcms_c_attach()
7944 if (BRCMS_ISNPHY(wlc->band) && (wlc->stf->txstreams == 1)) in brcms_c_attach()
7948 wlc_phy_stf_chain_init(wlc->band->pi, wlc->stf->hw_txchain, in brcms_c_attach()
7959 wlc->band = wlc->bandstate[j]; in brcms_c_attach()
7967 wlc->band->CWmin = APHY_CWMIN; in brcms_c_attach()
7968 wlc->band->CWmax = PHY_CWMAX; in brcms_c_attach()
7971 if (wlc->band->bandtype == BRCM_BAND_2G) { in brcms_c_attach()
7972 wlc->band->gmode = GMODE_AUTO; in brcms_c_attach()
7974 wlc->band->gmode); in brcms_c_attach()
7978 if (BRCMS_PHY_11N_CAP(wlc->band)) { in brcms_c_attach()
7986 /* init per-band default rateset, depend on band->gmode */ in brcms_c_attach()
7987 brcms_default_rateset(wlc, &wlc->band->defrateset); in brcms_c_attach()
7990 brcms_c_rateset_filter(&wlc->band->defrateset, in brcms_c_attach()
7991 &wlc->band->hw_rateset, false, in brcms_c_attach()
8042 } else if (BRCMS_ISSSLPNPHY(wlc->band)) { in brcms_c_attach()