Lines Matching defs:band
19 .band = NL80211_BAND_2GHZ, \
28 .band = NL80211_BAND_5GHZ, \
37 .band = NL80211_BAND_6GHZ, \
835 arg.mode = ath12k_phymodes[chandef->chan->band][chandef->width];
1302 enum nl80211_band band;
1312 band = def.chan->band;
1313 sband = ar->hw->wiphy->bands[band];
1314 ratemask = sta->deflink.supp_rates[band];
1315 ratemask &= arvif->bitrate_mask.control[band].legacy;
1362 enum nl80211_band band;
1376 band = def.chan->band;
1377 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
1401 if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) {
1523 enum nl80211_band band;
1536 band = def.chan->band;
1537 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
1547 if (def.chan->band == NL80211_BAND_2GHZ)
1996 enum nl80211_band band;
2004 band = def.chan->band;
2005 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
2006 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2008 switch (band) {
2420 sband = ar->hw->wiphy->bands[def->chan->band];
2498 enum nl80211_band band;
2679 band = def.chan->band;
2680 mcast_rate = vif->bss_conf.mcast_rate[band];
3277 enum nl80211_band band,
3283 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++)
3284 num_rates += hweight16(mask->control[band].vht_mcs[i]);
3293 enum nl80211_band band)
3304 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
3305 if (hweight16(mask->control[band].vht_mcs[i]) == 1) {
3307 vht_rate = ffs(mask->control[band].vht_mcs[i]) - 1;
3344 enum nl80211_band band;
3353 band = def.chan->band;
3371 num_vht_rates = ath12k_mac_bitrate_mask_num_vht_rates(ar, band, mask);
3380 band);
3450 enum nl80211_band band;
3467 band = def.chan->band;
3468 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
3469 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
3563 num_vht_rates = ath12k_mac_bitrate_mask_num_vht_rates(ar, band,
3579 band);
4269 struct ieee80211_supported_band *band;
4278 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
4279 ht_cap = cap->band[NL80211_BAND_2GHZ].ht_cap_info;
4282 band->ht_cap = ath12k_create_ht_cap(ar, ht_cap,
4289 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
4290 ht_cap = cap->band[NL80211_BAND_5GHZ].ht_cap_info;
4293 band->ht_cap = ath12k_create_ht_cap(ar, ht_cap,
4295 band->vht_cap = ath12k_create_vht_cap(ar, rate_cap_tx_chainmask,
4604 int band)
4606 struct ath12k_band_cap *band_cap = &cap->band[band];
4625 if (band == NL80211_BAND_6GHZ) {
4641 enum nl80211_band band;
4645 band = NL80211_BAND_2GHZ;
4647 ar->mac.iftype[band],
4648 band);
4649 sband = &ar->mac.sbands[band];
4650 sband->iftype_data = ar->mac.iftype[band];
4655 band = NL80211_BAND_5GHZ;
4657 ar->mac.iftype[band],
4658 band);
4659 sband = &ar->mac.sbands[band];
4660 sband->iftype_data = ar->mac.iftype[band];
4666 band = NL80211_BAND_6GHZ;
4668 ar->mac.iftype[band],
4669 band);
4670 sband = &ar->mac.sbands[band];
4671 sband->iftype_data = ar->mac.iftype[band];
5206 cap_band = &pdev_cap->band[NL80211_BAND_2GHZ];
5208 cap_band = &pdev_cap->band[NL80211_BAND_5GHZ];
5814 arg.mode = ath12k_phymodes[chandef->chan->band][chandef->width];
6388 enum nl80211_band band,
6394 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++)
6395 num_rates += hweight16(mask->control[band].ht_mcs[i]);
6402 enum nl80211_band band,
6407 num_rates = hweight32(mask->control[band].legacy);
6409 if (ath12k_mac_bitrate_mask_num_ht_rates(ar, band, mask))
6412 if (ath12k_mac_bitrate_mask_num_vht_rates(ar, band, mask))
6420 enum nl80211_band band,
6424 struct ieee80211_supported_band *sband = &ar->mac.sbands[band];
6434 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) {
6435 if (mask->control[band].ht_mcs[i] == 0)
6437 else if (mask->control[band].ht_mcs[i] ==
6444 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
6445 if (mask->control[band].vht_mcs[i] == 0)
6447 else if (mask->control[band].vht_mcs[i] ==
6470 enum nl80211_band band,
6479 if (hweight32(mask->control[band].legacy) != 1)
6482 rate_idx = ffs(mask->control[band].legacy) - 1;
6484 if (band == NL80211_BAND_5GHZ || band == NL80211_BAND_6GHZ)
6554 enum nl80211_band band,
6561 vht_mcs = mask->control[band].vht_mcs[i];
6616 enum nl80211_band band;
6630 band = def.chan->band;
6631 ht_mcs_mask = mask->control[band].ht_mcs;
6632 vht_mcs_mask = mask->control[band].vht_mcs;
6635 sgi = mask->control[band].gi;
6647 if (ath12k_mac_has_single_legacy_rate(ar, band, mask)) {
6648 ret = ath12k_mac_get_single_legacy_rate(ar, band, mask, &rate,
6658 } else if (ath12k_mac_bitrate_mask_get_single_nss(ar, band, mask,
6688 num_rates = ath12k_mac_bitrate_mask_num_vht_rates(ar, band,
6691 if (!ath12k_mac_vht_mcs_range_present(ar, band, mask) &&
6936 struct ieee80211_supported_band *band,
6944 for (i = 0; i < band->n_channels; i++) {
6945 if (band->channels[i].center_freq < freq_low ||
6946 band->channels[i].center_freq > freq_high)
6947 band->channels[i].flags |= IEEE80211_CHAN_DISABLED;
6951 static u32 ath12k_get_phy_id(struct ath12k *ar, u32 band)
6956 if (band == WMI_HOST_WLAN_2G_CAP)
6957 return pdev_cap->band[NL80211_BAND_2GHZ].phy_id;
6959 if (band == WMI_HOST_WLAN_5G_CAP)
6960 return pdev_cap->band[NL80211_BAND_5GHZ].phy_id;
6962 ath12k_warn(ar->ab, "unsupported phy cap:%d\n", band);
6970 struct ieee80211_supported_band *band;
6989 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
6990 band->band = NL80211_BAND_2GHZ;
6991 band->n_channels = ARRAY_SIZE(ath12k_2ghz_channels);
6992 band->channels = channels;
6993 band->n_bitrates = ath12k_g_rates_size;
6994 band->bitrates = ath12k_g_rates;
6995 ar->hw->wiphy->bands[NL80211_BAND_2GHZ] = band;
7001 ath12k_mac_update_ch_list(ar, band,
7016 band = &ar->mac.sbands[NL80211_BAND_6GHZ];
7017 band->band = NL80211_BAND_6GHZ;
7018 band->n_channels = ARRAY_SIZE(ath12k_6ghz_channels);
7019 band->channels = channels;
7020 band->n_bitrates = ath12k_a_rates_size;
7021 band->bitrates = ath12k_a_rates;
7022 ar->hw->wiphy->bands[NL80211_BAND_6GHZ] = band;
7023 ath12k_mac_update_ch_list(ar, band,
7038 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
7039 band->band = NL80211_BAND_5GHZ;
7040 band->n_channels = ARRAY_SIZE(ath12k_5ghz_channels);
7041 band->channels = channels;
7042 band->n_bitrates = ath12k_a_rates_size;
7043 band->bitrates = ath12k_a_rates;
7044 ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band;
7051 ath12k_mac_update_ch_list(ar, band,
7261 * for each band for a dual band capable radio. It will be tricky to
7262 * handle it when the ht capability different for each band.