Lines Matching refs:band

28 	.band                   = NL80211_BAND_2GHZ, \
37 .band = NL80211_BAND_5GHZ, \
46 .band = NL80211_BAND_6GHZ, \
690 enum nl80211_band band;
697 band = def.chan->band;
700 if (ath11k_mac_band_match(band, ab->target_pdev_ids[i].supported_bands))
940 arg.channel.mode = ath11k_phymodes[chandef->chan->band][chandef->width];
1812 enum nl80211_band band;
1822 band = def.chan->band;
1823 sband = ar->hw->wiphy->bands[band];
1824 ratemask = sta->deflink.supp_rates[band];
1825 ratemask &= arvif->bitrate_mask.control[band].legacy;
1872 enum nl80211_band band;
1886 band = def.chan->band;
1887 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
1915 if (arvif->bitrate_mask.control[band].gi == NL80211_TXRATE_DEFAULT_GI)
1919 if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) {
2069 enum nl80211_band band;
2083 band = def.chan->band;
2084 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2094 if (def.chan->band == NL80211_BAND_2GHZ)
2267 enum nl80211_band band;
2284 band = def.chan->band;
2285 memcpy(he_mcs_mask, arvif->bitrate_mask.control[band].he_mcs,
2511 enum nl80211_band band;
2517 band = def.chan->band;
2519 if (!arg->he_flag || band != NL80211_BAND_6GHZ || !sta->deflink.he_6ghz_capa.capa)
2540 * Band Capabilities element in the 6 GHz band.
2756 enum nl80211_band band;
2765 band = def.chan->band;
2766 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
2767 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2768 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs;
2770 switch (band) {
2957 if (def.chan->band == NL80211_BAND_2GHZ)
3178 sband = ar->hw->wiphy->bands[def->chan->band];
3413 enum nl80211_band band;
3620 band = def.chan->band;
3621 mcast_rate = vif->bss_conf.mcast_rate[band];
4028 * flags, then scan all PSC channels in 6 GHz band and
4034 if (req->channels[i]->band == NL80211_BAND_6GHZ &&
4350 enum nl80211_band band,
4356 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++)
4357 num_rates += hweight8(mask->control[band].ht_mcs[i]);
4364 enum nl80211_band band,
4370 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++)
4371 num_rates += hweight16(mask->control[band].vht_mcs[i]);
4378 enum nl80211_band band,
4384 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++)
4385 num_rates += hweight16(mask->control[band].he_mcs[i]);
4394 enum nl80211_band band)
4405 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
4406 if (hweight16(mask->control[band].vht_mcs[i]) == 1) {
4408 vht_rate = ffs(mask->control[band].vht_mcs[i]) - 1;
4444 enum nl80211_band band)
4455 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) {
4456 if (hweight16(mask->control[band].he_mcs[i]) == 1) {
4458 he_rate = ffs(mask->control[band].he_mcs[i]) - 1;
4495 enum nl80211_band band)
4504 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) {
4505 if (hweight8(mask->control[band].ht_mcs[i]) == 1) {
4507 ht_rate = ffs(mask->control[band].ht_mcs[i]) - 1;
4548 enum nl80211_band band;
4557 band = def.chan->band;
4576 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask);
4577 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask);
4578 num_ht_rates = ath11k_mac_bitrate_mask_num_ht_rates(ar, band, mask);
4587 band);
4592 band);
4597 band);
4668 enum nl80211_band band;
4686 band = def.chan->band;
4687 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
4688 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
4689 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs;
4789 num_ht_rates = ath11k_mac_bitrate_mask_num_ht_rates(ar, band,
4791 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band,
4793 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band,
4809 band);
4812 band);
4815 band);
5609 struct ieee80211_supported_band *band;
5618 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
5619 ht_cap = cap->band[NL80211_BAND_2GHZ].ht_cap_info;
5622 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap,
5629 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
5630 ht_cap = cap->band[NL80211_BAND_5GHZ].ht_cap_info;
5633 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap,
5635 band->vht_cap = ath11k_create_vht_cap(ar, rate_cap_tx_chainmask,
5781 int band)
5818 int band)
5824 struct ath11k_band_cap *band_cap = &cap->band[band];
5872 ath11k_mac_set_hemcsmap(ar, cap, he_cap, band);
5880 if (band == NL80211_BAND_6GHZ) {
5893 struct ieee80211_supported_band *band;
5900 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
5901 band->iftype_data = ar->mac.iftype[NL80211_BAND_2GHZ];
5902 band->n_iftype_data = count;
5909 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
5910 band->iftype_data = ar->mac.iftype[NL80211_BAND_5GHZ];
5911 band->n_iftype_data = count;
5919 band = &ar->mac.sbands[NL80211_BAND_6GHZ];
5920 band->iftype_data = ar->mac.iftype[NL80211_BAND_6GHZ];
5921 band->n_iftype_data = count;
7214 ath11k_phymodes[chandef->chan->band][chandef->width];
7883 enum nl80211_band band,
7888 num_rates = hweight32(mask->control[band].legacy);
7890 if (ath11k_mac_bitrate_mask_num_ht_rates(ar, band, mask))
7893 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask))
7896 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask))
7918 enum nl80211_band band,
7922 struct ieee80211_supported_band *sband = &ar->mac.sbands[band];
7934 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) {
7935 if (mask->control[band].ht_mcs[i] == 0)
7937 else if (mask->control[band].ht_mcs[i] ==
7944 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
7945 if (mask->control[band].vht_mcs[i] == 0)
7947 else if (mask->control[band].vht_mcs[i] ==
7956 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) {
7957 if (mask->control[band].he_mcs[i] == 0)
7960 if (mask->control[band].he_mcs[i] ==
7983 enum nl80211_band band,
7992 if (hweight32(mask->control[band].legacy) != 1)
7995 rate_idx = ffs(mask->control[band].legacy) - 1;
7997 if (band == NL80211_BAND_5GHZ || band == NL80211_BAND_6GHZ)
8179 enum nl80211_band band,
8186 vht_mcs = mask->control[band].vht_mcs[i];
8204 enum nl80211_band band,
8211 he_mcs = mask->control[band].he_mcs[i];
8259 ath11k_mac_validate_vht_he_fixed_rate_settings(struct ath11k *ar, enum nl80211_band band,
8269 vht_mcs_mask = mask->control[band].vht_mcs;
8270 he_mcs_mask = mask->control[band].he_mcs;
8272 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask) == 1)
8275 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask) == 1)
8319 enum nl80211_band band;
8337 band = def.chan->band;
8339 ht_mcs_mask = mask->control[band].ht_mcs;
8340 vht_mcs_mask = mask->control[band].vht_mcs;
8341 he_mcs_mask = mask->control[band].he_mcs;
8342 ldpc = !!(cap->band[band].ht_cap_info & WMI_HT_CAP_TX_LDPC);
8344 sgi = mask->control[band].gi;
8348 he_gi = mask->control[band].he_gi;
8349 he_ltf = mask->control[band].he_ltf;
8359 if (ath11k_mac_has_single_legacy_rate(ar, band, mask)) {
8360 ret = ath11k_mac_get_single_legacy_rate(ar, band, mask, &rate,
8370 } else if (ath11k_mac_bitrate_mask_get_single_nss(ar, band, mask,
8383 if (!ath11k_mac_validate_vht_he_fixed_rate_settings(ar, band, mask))
8411 num_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band,
8414 if (!ath11k_mac_vht_mcs_range_present(ar, band, mask) &&
8425 num_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band,
8430 if (!ath11k_mac_he_mcs_range_present(ar, band, mask) &&
9153 struct ieee80211_supported_band *band,
9161 for (i = 0; i < band->n_channels; i++) {
9162 if (band->channels[i].center_freq < freq_low ||
9163 band->channels[i].center_freq > freq_high)
9164 band->channels[i].flags |= IEEE80211_CHAN_DISABLED;
9168 static u32 ath11k_get_phy_id(struct ath11k *ar, u32 band)
9173 if (band == WMI_HOST_WLAN_2G_CAP)
9174 return pdev_cap->band[NL80211_BAND_2GHZ].phy_id;
9176 if (band == WMI_HOST_WLAN_5G_CAP)
9177 return pdev_cap->band[NL80211_BAND_5GHZ].phy_id;
9179 ath11k_warn(ar->ab, "unsupported phy cap:%d\n", band);
9187 struct ieee80211_supported_band *band;
9207 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
9208 band->band = NL80211_BAND_2GHZ;
9209 band->n_channels = ARRAY_SIZE(ath11k_2ghz_channels);
9210 band->channels = channels;
9211 band->n_bitrates = ath11k_g_rates_size;
9212 band->bitrates = ath11k_g_rates;
9213 ar->hw->wiphy->bands[NL80211_BAND_2GHZ] = band;
9219 ath11k_mac_update_ch_list(ar, band,
9234 band = &ar->mac.sbands[NL80211_BAND_6GHZ];
9235 band->band = NL80211_BAND_6GHZ;
9236 band->n_channels = ARRAY_SIZE(ath11k_6ghz_channels);
9237 band->channels = channels;
9238 band->n_bitrates = ath11k_a_rates_size;
9239 band->bitrates = ath11k_a_rates;
9240 ar->hw->wiphy->bands[NL80211_BAND_6GHZ] = band;
9247 ath11k_mac_update_ch_list(ar, band,
9262 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
9263 band->band = NL80211_BAND_5GHZ;
9264 band->n_channels = ARRAY_SIZE(ath11k_5ghz_channels);
9265 band->channels = channels;
9266 band->n_bitrates = ath11k_a_rates_size;
9267 band->bitrates = ath11k_a_rates;
9268 ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band;
9275 ath11k_mac_update_ch_list(ar, band,
9497 * for each band for a dual band capable radio. It will be tricky to
9498 * handle it when the ht capability different for each band.