Lines Matching full:band

28 	.band                   = NL80211_BAND_2GHZ, \
37 .band = NL80211_BAND_5GHZ, \
46 .band = NL80211_BAND_6GHZ, \
690 enum nl80211_band band; in ath11k_mac_get_target_pdev_id_from_vif() local
697 band = def.chan->band; in ath11k_mac_get_target_pdev_id_from_vif()
700 if (ath11k_mac_band_match(band, ab->target_pdev_ids[i].supported_bands)) in ath11k_mac_get_target_pdev_id_from_vif()
940 arg.channel.mode = ath11k_phymodes[chandef->chan->band][chandef->width]; in ath11k_mac_monitor_vdev_start()
1812 enum nl80211_band band; in ath11k_peer_assoc_h_rates() local
1822 band = def.chan->band; in ath11k_peer_assoc_h_rates()
1823 sband = ar->hw->wiphy->bands[band]; in ath11k_peer_assoc_h_rates()
1824 ratemask = sta->deflink.supp_rates[band]; in ath11k_peer_assoc_h_rates()
1825 ratemask &= arvif->bitrate_mask.control[band].legacy; in ath11k_peer_assoc_h_rates()
1872 enum nl80211_band band; in ath11k_peer_assoc_h_ht() local
1886 band = def.chan->band; in ath11k_peer_assoc_h_ht()
1887 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_peer_assoc_h_ht()
1915 if (arvif->bitrate_mask.control[band].gi == NL80211_TXRATE_DEFAULT_GI) in ath11k_peer_assoc_h_ht()
1919 if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) { in ath11k_peer_assoc_h_ht()
2069 enum nl80211_band band; in ath11k_peer_assoc_h_vht() local
2083 band = def.chan->band; in ath11k_peer_assoc_h_vht()
2084 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_peer_assoc_h_vht()
2094 if (def.chan->band == NL80211_BAND_2GHZ) in ath11k_peer_assoc_h_vht()
2267 enum nl80211_band band; in ath11k_peer_assoc_h_he() local
2284 band = def.chan->band; in ath11k_peer_assoc_h_he()
2285 memcpy(he_mcs_mask, arvif->bitrate_mask.control[band].he_mcs, in ath11k_peer_assoc_h_he()
2507 enum nl80211_band band; in ath11k_peer_assoc_h_he_6ghz() local
2513 band = def.chan->band; in ath11k_peer_assoc_h_he_6ghz()
2515 if (!arg->he_flag || band != NL80211_BAND_6GHZ || !sta->deflink.he_6ghz_capa.capa) in ath11k_peer_assoc_h_he_6ghz()
2536 * Band Capabilities element in the 6 GHz band. in ath11k_peer_assoc_h_he_6ghz()
2539 * factor is the Maximum A-MPDU Length Exponent from HE 6 GHZ Band capability. in ath11k_peer_assoc_h_he_6ghz()
2752 enum nl80211_band band; in ath11k_peer_assoc_h_phymode() local
2761 band = def.chan->band; in ath11k_peer_assoc_h_phymode()
2762 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_peer_assoc_h_phymode()
2763 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_peer_assoc_h_phymode()
2764 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs; in ath11k_peer_assoc_h_phymode()
2766 switch (band) { in ath11k_peer_assoc_h_phymode()
2953 if (def.chan->band == NL80211_BAND_2GHZ) in ath11k_mac_vif_recalc_sta_he_txbf()
3173 sband = ar->hw->wiphy->bands[def->chan->band]; in ath11k_recalculate_mgmt_rate()
3408 enum nl80211_band band; in ath11k_mac_op_bss_info_changed() local
3615 band = def.chan->band; in ath11k_mac_op_bss_info_changed()
3616 mcast_rate = vif->bss_conf.mcast_rate[band]; in ath11k_mac_op_bss_info_changed()
4023 * flags, then scan all PSC channels in 6 GHz band and in ath11k_mac_op_hw_scan()
4029 if (req->channels[i]->band == NL80211_BAND_6GHZ && in ath11k_mac_op_hw_scan()
4345 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_ht_rates() argument
4351 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) in ath11k_mac_bitrate_mask_num_ht_rates()
4352 num_rates += hweight8(mask->control[band].ht_mcs[i]); in ath11k_mac_bitrate_mask_num_ht_rates()
4359 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_vht_rates() argument
4365 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) in ath11k_mac_bitrate_mask_num_vht_rates()
4366 num_rates += hweight16(mask->control[band].vht_mcs[i]); in ath11k_mac_bitrate_mask_num_vht_rates()
4373 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_he_rates() argument
4379 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) in ath11k_mac_bitrate_mask_num_he_rates()
4380 num_rates += hweight16(mask->control[band].he_mcs[i]); in ath11k_mac_bitrate_mask_num_he_rates()
4389 enum nl80211_band band) in ath11k_mac_set_peer_vht_fixed_rate() argument
4400 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) { in ath11k_mac_set_peer_vht_fixed_rate()
4401 if (hweight16(mask->control[band].vht_mcs[i]) == 1) { in ath11k_mac_set_peer_vht_fixed_rate()
4403 vht_rate = ffs(mask->control[band].vht_mcs[i]) - 1; in ath11k_mac_set_peer_vht_fixed_rate()
4439 enum nl80211_band band) in ath11k_mac_set_peer_he_fixed_rate() argument
4450 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) { in ath11k_mac_set_peer_he_fixed_rate()
4451 if (hweight16(mask->control[band].he_mcs[i]) == 1) { in ath11k_mac_set_peer_he_fixed_rate()
4453 he_rate = ffs(mask->control[band].he_mcs[i]) - 1; in ath11k_mac_set_peer_he_fixed_rate()
4490 enum nl80211_band band) in ath11k_mac_set_peer_ht_fixed_rate() argument
4499 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) { in ath11k_mac_set_peer_ht_fixed_rate()
4500 if (hweight8(mask->control[band].ht_mcs[i]) == 1) { in ath11k_mac_set_peer_ht_fixed_rate()
4502 ht_rate = ffs(mask->control[band].ht_mcs[i]) - 1; in ath11k_mac_set_peer_ht_fixed_rate()
4543 enum nl80211_band band; in ath11k_station_assoc() local
4552 band = def.chan->band; in ath11k_station_assoc()
4571 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask); in ath11k_station_assoc()
4572 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask); in ath11k_station_assoc()
4573 num_ht_rates = ath11k_mac_bitrate_mask_num_ht_rates(ar, band, mask); in ath11k_station_assoc()
4582 band); in ath11k_station_assoc()
4587 band); in ath11k_station_assoc()
4592 band); in ath11k_station_assoc()
4663 enum nl80211_band band; in ath11k_sta_rc_update_wk() local
4681 band = def.chan->band; in ath11k_sta_rc_update_wk()
4682 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_sta_rc_update_wk()
4683 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_sta_rc_update_wk()
4684 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs; in ath11k_sta_rc_update_wk()
4784 num_ht_rates = ath11k_mac_bitrate_mask_num_ht_rates(ar, band, in ath11k_sta_rc_update_wk()
4786 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, in ath11k_sta_rc_update_wk()
4788 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, in ath11k_sta_rc_update_wk()
4804 band); in ath11k_sta_rc_update_wk()
4807 band); in ath11k_sta_rc_update_wk()
4810 band); in ath11k_sta_rc_update_wk()
5604 struct ieee80211_supported_band *band; in ath11k_mac_setup_ht_vht_cap() local
5613 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_ht_vht_cap()
5614 ht_cap = cap->band[NL80211_BAND_2GHZ].ht_cap_info; in ath11k_mac_setup_ht_vht_cap()
5617 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap()
5624 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_ht_vht_cap()
5625 ht_cap = cap->band[NL80211_BAND_5GHZ].ht_cap_info; in ath11k_mac_setup_ht_vht_cap()
5628 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap()
5630 band->vht_cap = ath11k_create_vht_cap(ar, rate_cap_tx_chainmask, in ath11k_mac_setup_ht_vht_cap()
5776 int band) in ath11k_mac_set_hemcsmap() argument
5813 int band) in ath11k_mac_copy_he_cap() argument
5819 struct ath11k_band_cap *band_cap = &cap->band[band]; in ath11k_mac_copy_he_cap()
5867 ath11k_mac_set_hemcsmap(ar, cap, he_cap, band); in ath11k_mac_copy_he_cap()
5875 if (band == NL80211_BAND_6GHZ) { in ath11k_mac_copy_he_cap()
5888 struct ieee80211_supported_band *band; in ath11k_mac_setup_he_cap() local
5895 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_he_cap()
5896 band->iftype_data = ar->mac.iftype[NL80211_BAND_2GHZ]; in ath11k_mac_setup_he_cap()
5897 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
5904 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_he_cap()
5905 band->iftype_data = ar->mac.iftype[NL80211_BAND_5GHZ]; in ath11k_mac_setup_he_cap()
5906 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
5914 band = &ar->mac.sbands[NL80211_BAND_6GHZ]; in ath11k_mac_setup_he_cap()
5915 band->iftype_data = ar->mac.iftype[NL80211_BAND_6GHZ]; in ath11k_mac_setup_he_cap()
5916 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
7209 ath11k_phymodes[chandef->chan->band][chandef->width]; in ath11k_mac_vdev_start_restart()
7878 enum nl80211_band band, in ath11k_mac_has_single_legacy_rate() argument
7883 num_rates = hweight32(mask->control[band].legacy); in ath11k_mac_has_single_legacy_rate()
7885 if (ath11k_mac_bitrate_mask_num_ht_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
7888 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
7891 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
7913 enum nl80211_band band, in ath11k_mac_bitrate_mask_get_single_nss() argument
7917 struct ieee80211_supported_band *sband = &ar->mac.sbands[band]; in ath11k_mac_bitrate_mask_get_single_nss()
7929 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
7930 if (mask->control[band].ht_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
7932 else if (mask->control[band].ht_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
7939 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
7940 if (mask->control[band].vht_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
7942 else if (mask->control[band].vht_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
7951 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
7952 if (mask->control[band].he_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
7955 if (mask->control[band].he_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
7978 enum nl80211_band band, in ath11k_mac_get_single_legacy_rate() argument
7987 if (hweight32(mask->control[band].legacy) != 1) in ath11k_mac_get_single_legacy_rate()
7990 rate_idx = ffs(mask->control[band].legacy) - 1; in ath11k_mac_get_single_legacy_rate()
7992 if (band == NL80211_BAND_5GHZ || band == NL80211_BAND_6GHZ) in ath11k_mac_get_single_legacy_rate()
8174 enum nl80211_band band, in ath11k_mac_vht_mcs_range_present() argument
8181 vht_mcs = mask->control[band].vht_mcs[i]; in ath11k_mac_vht_mcs_range_present()
8199 enum nl80211_band band, in ath11k_mac_he_mcs_range_present() argument
8206 he_mcs = mask->control[band].he_mcs[i]; in ath11k_mac_he_mcs_range_present()
8254 ath11k_mac_validate_vht_he_fixed_rate_settings(struct ath11k *ar, enum nl80211_band band, in ath11k_mac_validate_vht_he_fixed_rate_settings() argument
8264 vht_mcs_mask = mask->control[band].vht_mcs; in ath11k_mac_validate_vht_he_fixed_rate_settings()
8265 he_mcs_mask = mask->control[band].he_mcs; in ath11k_mac_validate_vht_he_fixed_rate_settings()
8267 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask) == 1) in ath11k_mac_validate_vht_he_fixed_rate_settings()
8270 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask) == 1) in ath11k_mac_validate_vht_he_fixed_rate_settings()
8314 enum nl80211_band band; in ath11k_mac_op_set_bitrate_mask() local
8332 band = def.chan->band; in ath11k_mac_op_set_bitrate_mask()
8334 ht_mcs_mask = mask->control[band].ht_mcs; in ath11k_mac_op_set_bitrate_mask()
8335 vht_mcs_mask = mask->control[band].vht_mcs; in ath11k_mac_op_set_bitrate_mask()
8336 he_mcs_mask = mask->control[band].he_mcs; in ath11k_mac_op_set_bitrate_mask()
8337 ldpc = !!(cap->band[band].ht_cap_info & WMI_HT_CAP_TX_LDPC); in ath11k_mac_op_set_bitrate_mask()
8339 sgi = mask->control[band].gi; in ath11k_mac_op_set_bitrate_mask()
8343 he_gi = mask->control[band].he_gi; in ath11k_mac_op_set_bitrate_mask()
8344 he_ltf = mask->control[band].he_ltf; in ath11k_mac_op_set_bitrate_mask()
8354 if (ath11k_mac_has_single_legacy_rate(ar, band, mask)) { in ath11k_mac_op_set_bitrate_mask()
8355 ret = ath11k_mac_get_single_legacy_rate(ar, band, mask, &rate, in ath11k_mac_op_set_bitrate_mask()
8365 } else if (ath11k_mac_bitrate_mask_get_single_nss(ar, band, mask, in ath11k_mac_op_set_bitrate_mask()
8378 if (!ath11k_mac_validate_vht_he_fixed_rate_settings(ar, band, mask)) in ath11k_mac_op_set_bitrate_mask()
8406 num_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, in ath11k_mac_op_set_bitrate_mask()
8409 if (!ath11k_mac_vht_mcs_range_present(ar, band, mask) && in ath11k_mac_op_set_bitrate_mask()
8420 num_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, in ath11k_mac_op_set_bitrate_mask()
8425 if (!ath11k_mac_he_mcs_range_present(ar, band, mask) && in ath11k_mac_op_set_bitrate_mask()
9140 struct ieee80211_supported_band *band, in ath11k_mac_update_ch_list() argument
9148 for (i = 0; i < band->n_channels; i++) { in ath11k_mac_update_ch_list()
9149 if (band->channels[i].center_freq < freq_low || in ath11k_mac_update_ch_list()
9150 band->channels[i].center_freq > freq_high) in ath11k_mac_update_ch_list()
9151 band->channels[i].flags |= IEEE80211_CHAN_DISABLED; in ath11k_mac_update_ch_list()
9155 static u32 ath11k_get_phy_id(struct ath11k *ar, u32 band) in ath11k_get_phy_id() argument
9160 if (band == WMI_HOST_WLAN_2G_CAP) in ath11k_get_phy_id()
9161 return pdev_cap->band[NL80211_BAND_2GHZ].phy_id; in ath11k_get_phy_id()
9163 if (band == WMI_HOST_WLAN_5G_CAP) in ath11k_get_phy_id()
9164 return pdev_cap->band[NL80211_BAND_5GHZ].phy_id; in ath11k_get_phy_id()
9166 ath11k_warn(ar->ab, "unsupported phy cap:%d\n", band); in ath11k_get_phy_id()
9174 struct ieee80211_supported_band *band; in ath11k_mac_setup_channels_rates() local
9194 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_channels_rates()
9195 band->band = NL80211_BAND_2GHZ; in ath11k_mac_setup_channels_rates()
9196 band->n_channels = ARRAY_SIZE(ath11k_2ghz_channels); in ath11k_mac_setup_channels_rates()
9197 band->channels = channels; in ath11k_mac_setup_channels_rates()
9198 band->n_bitrates = ath11k_g_rates_size; in ath11k_mac_setup_channels_rates()
9199 band->bitrates = ath11k_g_rates; in ath11k_mac_setup_channels_rates()
9200 ar->hw->wiphy->bands[NL80211_BAND_2GHZ] = band; in ath11k_mac_setup_channels_rates()
9206 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()
9221 band = &ar->mac.sbands[NL80211_BAND_6GHZ]; in ath11k_mac_setup_channels_rates()
9222 band->band = NL80211_BAND_6GHZ; in ath11k_mac_setup_channels_rates()
9223 band->n_channels = ARRAY_SIZE(ath11k_6ghz_channels); in ath11k_mac_setup_channels_rates()
9224 band->channels = channels; in ath11k_mac_setup_channels_rates()
9225 band->n_bitrates = ath11k_a_rates_size; in ath11k_mac_setup_channels_rates()
9226 band->bitrates = ath11k_a_rates; in ath11k_mac_setup_channels_rates()
9227 ar->hw->wiphy->bands[NL80211_BAND_6GHZ] = band; in ath11k_mac_setup_channels_rates()
9234 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()
9249 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_channels_rates()
9250 band->band = NL80211_BAND_5GHZ; in ath11k_mac_setup_channels_rates()
9251 band->n_channels = ARRAY_SIZE(ath11k_5ghz_channels); in ath11k_mac_setup_channels_rates()
9252 band->channels = channels; in ath11k_mac_setup_channels_rates()
9253 band->n_bitrates = ath11k_a_rates_size; in ath11k_mac_setup_channels_rates()
9254 band->bitrates = ath11k_a_rates; in ath11k_mac_setup_channels_rates()
9255 ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band; in ath11k_mac_setup_channels_rates()
9262 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()
9484 * for each band for a dual band capable radio. It will be tricky to in __ath11k_mac_register()
9485 * handle it when the ht capability different for each band. in __ath11k_mac_register()