Lines Matching refs: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()
1805 enum nl80211_band band; in ath11k_peer_assoc_h_rates() local
1815 band = def.chan->band; in ath11k_peer_assoc_h_rates()
1816 sband = ar->hw->wiphy->bands[band]; in ath11k_peer_assoc_h_rates()
1817 ratemask = sta->deflink.supp_rates[band]; in ath11k_peer_assoc_h_rates()
1818 ratemask &= arvif->bitrate_mask.control[band].legacy; in ath11k_peer_assoc_h_rates()
1865 enum nl80211_band band; in ath11k_peer_assoc_h_ht() local
1879 band = def.chan->band; in ath11k_peer_assoc_h_ht()
1880 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_peer_assoc_h_ht()
1908 if (arvif->bitrate_mask.control[band].gi == NL80211_TXRATE_DEFAULT_GI) in ath11k_peer_assoc_h_ht()
1912 if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) { in ath11k_peer_assoc_h_ht()
2062 enum nl80211_band band; in ath11k_peer_assoc_h_vht() local
2076 band = def.chan->band; in ath11k_peer_assoc_h_vht()
2077 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_peer_assoc_h_vht()
2087 if (def.chan->band == NL80211_BAND_2GHZ) in ath11k_peer_assoc_h_vht()
2260 enum nl80211_band band; in ath11k_peer_assoc_h_he() local
2277 band = def.chan->band; in ath11k_peer_assoc_h_he()
2278 memcpy(he_mcs_mask, arvif->bitrate_mask.control[band].he_mcs, in ath11k_peer_assoc_h_he()
2504 enum nl80211_band band; in ath11k_peer_assoc_h_he_6ghz() local
2510 band = def.chan->band; in ath11k_peer_assoc_h_he_6ghz()
2512 if (!arg->he_flag || band != NL80211_BAND_6GHZ || !sta->deflink.he_6ghz_capa.capa) in ath11k_peer_assoc_h_he_6ghz()
2749 enum nl80211_band band; in ath11k_peer_assoc_h_phymode() local
2758 band = def.chan->band; in ath11k_peer_assoc_h_phymode()
2759 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_peer_assoc_h_phymode()
2760 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_peer_assoc_h_phymode()
2761 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs; in ath11k_peer_assoc_h_phymode()
2763 switch (band) { in ath11k_peer_assoc_h_phymode()
2950 if (def.chan->band == NL80211_BAND_2GHZ) in ath11k_mac_vif_recalc_sta_he_txbf()
3171 sband = ar->hw->wiphy->bands[def->chan->band]; in ath11k_recalculate_mgmt_rate()
3406 enum nl80211_band band; in ath11k_mac_op_bss_info_changed() local
3613 band = def.chan->band; in ath11k_mac_op_bss_info_changed()
3614 mcast_rate = vif->bss_conf.mcast_rate[band]; in ath11k_mac_op_bss_info_changed()
4027 if (req->channels[i]->band == NL80211_BAND_6GHZ && in ath11k_mac_op_hw_scan()
4343 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_ht_rates() argument
4349 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) in ath11k_mac_bitrate_mask_num_ht_rates()
4350 num_rates += hweight8(mask->control[band].ht_mcs[i]); in ath11k_mac_bitrate_mask_num_ht_rates()
4357 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_vht_rates() argument
4363 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) in ath11k_mac_bitrate_mask_num_vht_rates()
4364 num_rates += hweight16(mask->control[band].vht_mcs[i]); in ath11k_mac_bitrate_mask_num_vht_rates()
4371 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_he_rates() argument
4377 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) in ath11k_mac_bitrate_mask_num_he_rates()
4378 num_rates += hweight16(mask->control[band].he_mcs[i]); in ath11k_mac_bitrate_mask_num_he_rates()
4387 enum nl80211_band band) in ath11k_mac_set_peer_vht_fixed_rate() argument
4398 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) { in ath11k_mac_set_peer_vht_fixed_rate()
4399 if (hweight16(mask->control[band].vht_mcs[i]) == 1) { in ath11k_mac_set_peer_vht_fixed_rate()
4401 vht_rate = ffs(mask->control[band].vht_mcs[i]) - 1; in ath11k_mac_set_peer_vht_fixed_rate()
4437 enum nl80211_band band) in ath11k_mac_set_peer_he_fixed_rate() argument
4448 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) { in ath11k_mac_set_peer_he_fixed_rate()
4449 if (hweight16(mask->control[band].he_mcs[i]) == 1) { in ath11k_mac_set_peer_he_fixed_rate()
4451 he_rate = ffs(mask->control[band].he_mcs[i]) - 1; in ath11k_mac_set_peer_he_fixed_rate()
4488 enum nl80211_band band) in ath11k_mac_set_peer_ht_fixed_rate() argument
4497 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) { in ath11k_mac_set_peer_ht_fixed_rate()
4498 if (hweight8(mask->control[band].ht_mcs[i]) == 1) { in ath11k_mac_set_peer_ht_fixed_rate()
4500 ht_rate = ffs(mask->control[band].ht_mcs[i]) - 1; in ath11k_mac_set_peer_ht_fixed_rate()
4541 enum nl80211_band band; in ath11k_station_assoc() local
4550 band = def.chan->band; in ath11k_station_assoc()
4569 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask); in ath11k_station_assoc()
4570 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask); in ath11k_station_assoc()
4571 num_ht_rates = ath11k_mac_bitrate_mask_num_ht_rates(ar, band, mask); in ath11k_station_assoc()
4580 band); in ath11k_station_assoc()
4585 band); in ath11k_station_assoc()
4590 band); in ath11k_station_assoc()
4661 enum nl80211_band band; in ath11k_sta_rc_update_wk() local
4679 band = def.chan->band; in ath11k_sta_rc_update_wk()
4680 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_sta_rc_update_wk()
4681 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_sta_rc_update_wk()
4682 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs; in ath11k_sta_rc_update_wk()
4782 num_ht_rates = ath11k_mac_bitrate_mask_num_ht_rates(ar, band, in ath11k_sta_rc_update_wk()
4784 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, in ath11k_sta_rc_update_wk()
4786 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, in ath11k_sta_rc_update_wk()
4802 band); in ath11k_sta_rc_update_wk()
4805 band); in ath11k_sta_rc_update_wk()
4808 band); in ath11k_sta_rc_update_wk()
5602 struct ieee80211_supported_band *band; in ath11k_mac_setup_ht_vht_cap() local
5611 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_ht_vht_cap()
5612 ht_cap = cap->band[NL80211_BAND_2GHZ].ht_cap_info; in ath11k_mac_setup_ht_vht_cap()
5615 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap()
5622 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_ht_vht_cap()
5623 ht_cap = cap->band[NL80211_BAND_5GHZ].ht_cap_info; in ath11k_mac_setup_ht_vht_cap()
5626 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap()
5628 band->vht_cap = ath11k_create_vht_cap(ar, rate_cap_tx_chainmask, in ath11k_mac_setup_ht_vht_cap()
5774 int band) in ath11k_mac_set_hemcsmap() argument
5811 int band) in ath11k_mac_copy_he_cap() argument
5817 struct ath11k_band_cap *band_cap = &cap->band[band]; in ath11k_mac_copy_he_cap()
5865 ath11k_mac_set_hemcsmap(ar, cap, he_cap, band); in ath11k_mac_copy_he_cap()
5873 if (band == NL80211_BAND_6GHZ) { in ath11k_mac_copy_he_cap()
5886 struct ieee80211_supported_band *band; in ath11k_mac_setup_he_cap() local
5893 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_he_cap()
5894 band->iftype_data = ar->mac.iftype[NL80211_BAND_2GHZ]; in ath11k_mac_setup_he_cap()
5895 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
5902 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_he_cap()
5903 band->iftype_data = ar->mac.iftype[NL80211_BAND_5GHZ]; in ath11k_mac_setup_he_cap()
5904 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
5912 band = &ar->mac.sbands[NL80211_BAND_6GHZ]; in ath11k_mac_setup_he_cap()
5913 band->iftype_data = ar->mac.iftype[NL80211_BAND_6GHZ]; in ath11k_mac_setup_he_cap()
5914 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
7207 ath11k_phymodes[chandef->chan->band][chandef->width]; in ath11k_mac_vdev_start_restart()
7876 enum nl80211_band band, in ath11k_mac_has_single_legacy_rate() argument
7881 num_rates = hweight32(mask->control[band].legacy); in ath11k_mac_has_single_legacy_rate()
7883 if (ath11k_mac_bitrate_mask_num_ht_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
7886 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
7889 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
7911 enum nl80211_band band, in ath11k_mac_bitrate_mask_get_single_nss() argument
7915 struct ieee80211_supported_band *sband = &ar->mac.sbands[band]; in ath11k_mac_bitrate_mask_get_single_nss()
7927 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
7928 if (mask->control[band].ht_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
7930 else if (mask->control[band].ht_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
7937 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
7938 if (mask->control[band].vht_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
7940 else if (mask->control[band].vht_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
7949 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
7950 if (mask->control[band].he_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
7953 if (mask->control[band].he_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
7976 enum nl80211_band band, in ath11k_mac_get_single_legacy_rate() argument
7985 if (hweight32(mask->control[band].legacy) != 1) in ath11k_mac_get_single_legacy_rate()
7988 rate_idx = ffs(mask->control[band].legacy) - 1; in ath11k_mac_get_single_legacy_rate()
7990 if (band == NL80211_BAND_5GHZ || band == NL80211_BAND_6GHZ) in ath11k_mac_get_single_legacy_rate()
8172 enum nl80211_band band, in ath11k_mac_vht_mcs_range_present() argument
8179 vht_mcs = mask->control[band].vht_mcs[i]; in ath11k_mac_vht_mcs_range_present()
8197 enum nl80211_band band, in ath11k_mac_he_mcs_range_present() argument
8204 he_mcs = mask->control[band].he_mcs[i]; in ath11k_mac_he_mcs_range_present()
8252 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
8262 vht_mcs_mask = mask->control[band].vht_mcs; in ath11k_mac_validate_vht_he_fixed_rate_settings()
8263 he_mcs_mask = mask->control[band].he_mcs; in ath11k_mac_validate_vht_he_fixed_rate_settings()
8265 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask) == 1) in ath11k_mac_validate_vht_he_fixed_rate_settings()
8268 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask) == 1) in ath11k_mac_validate_vht_he_fixed_rate_settings()
8312 enum nl80211_band band; in ath11k_mac_op_set_bitrate_mask() local
8330 band = def.chan->band; in ath11k_mac_op_set_bitrate_mask()
8332 ht_mcs_mask = mask->control[band].ht_mcs; in ath11k_mac_op_set_bitrate_mask()
8333 vht_mcs_mask = mask->control[band].vht_mcs; in ath11k_mac_op_set_bitrate_mask()
8334 he_mcs_mask = mask->control[band].he_mcs; in ath11k_mac_op_set_bitrate_mask()
8335 ldpc = !!(cap->band[band].ht_cap_info & WMI_HT_CAP_TX_LDPC); in ath11k_mac_op_set_bitrate_mask()
8337 sgi = mask->control[band].gi; in ath11k_mac_op_set_bitrate_mask()
8341 he_gi = mask->control[band].he_gi; in ath11k_mac_op_set_bitrate_mask()
8342 he_ltf = mask->control[band].he_ltf; in ath11k_mac_op_set_bitrate_mask()
8352 if (ath11k_mac_has_single_legacy_rate(ar, band, mask)) { in ath11k_mac_op_set_bitrate_mask()
8353 ret = ath11k_mac_get_single_legacy_rate(ar, band, mask, &rate, in ath11k_mac_op_set_bitrate_mask()
8363 } else if (ath11k_mac_bitrate_mask_get_single_nss(ar, band, mask, in ath11k_mac_op_set_bitrate_mask()
8376 if (!ath11k_mac_validate_vht_he_fixed_rate_settings(ar, band, mask)) in ath11k_mac_op_set_bitrate_mask()
8404 num_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, in ath11k_mac_op_set_bitrate_mask()
8407 if (!ath11k_mac_vht_mcs_range_present(ar, band, mask) && in ath11k_mac_op_set_bitrate_mask()
8418 num_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, in ath11k_mac_op_set_bitrate_mask()
8423 if (!ath11k_mac_he_mcs_range_present(ar, band, mask) && in ath11k_mac_op_set_bitrate_mask()
9146 struct ieee80211_supported_band *band, in ath11k_mac_update_ch_list() argument
9154 for (i = 0; i < band->n_channels; i++) { in ath11k_mac_update_ch_list()
9155 if (band->channels[i].center_freq < freq_low || in ath11k_mac_update_ch_list()
9156 band->channels[i].center_freq > freq_high) in ath11k_mac_update_ch_list()
9157 band->channels[i].flags |= IEEE80211_CHAN_DISABLED; in ath11k_mac_update_ch_list()
9161 static u32 ath11k_get_phy_id(struct ath11k *ar, u32 band) in ath11k_get_phy_id() argument
9166 if (band == WMI_HOST_WLAN_2G_CAP) in ath11k_get_phy_id()
9167 return pdev_cap->band[NL80211_BAND_2GHZ].phy_id; in ath11k_get_phy_id()
9169 if (band == WMI_HOST_WLAN_5G_CAP) in ath11k_get_phy_id()
9170 return pdev_cap->band[NL80211_BAND_5GHZ].phy_id; in ath11k_get_phy_id()
9172 ath11k_warn(ar->ab, "unsupported phy cap:%d\n", band); in ath11k_get_phy_id()
9180 struct ieee80211_supported_band *band; in ath11k_mac_setup_channels_rates() local
9200 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_channels_rates()
9201 band->band = NL80211_BAND_2GHZ; in ath11k_mac_setup_channels_rates()
9202 band->n_channels = ARRAY_SIZE(ath11k_2ghz_channels); in ath11k_mac_setup_channels_rates()
9203 band->channels = channels; in ath11k_mac_setup_channels_rates()
9204 band->n_bitrates = ath11k_g_rates_size; in ath11k_mac_setup_channels_rates()
9205 band->bitrates = ath11k_g_rates; in ath11k_mac_setup_channels_rates()
9206 ar->hw->wiphy->bands[NL80211_BAND_2GHZ] = band; in ath11k_mac_setup_channels_rates()
9212 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()
9227 band = &ar->mac.sbands[NL80211_BAND_6GHZ]; in ath11k_mac_setup_channels_rates()
9228 band->band = NL80211_BAND_6GHZ; in ath11k_mac_setup_channels_rates()
9229 band->n_channels = ARRAY_SIZE(ath11k_6ghz_channels); in ath11k_mac_setup_channels_rates()
9230 band->channels = channels; in ath11k_mac_setup_channels_rates()
9231 band->n_bitrates = ath11k_a_rates_size; in ath11k_mac_setup_channels_rates()
9232 band->bitrates = ath11k_a_rates; in ath11k_mac_setup_channels_rates()
9233 ar->hw->wiphy->bands[NL80211_BAND_6GHZ] = band; in ath11k_mac_setup_channels_rates()
9240 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()
9255 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_channels_rates()
9256 band->band = NL80211_BAND_5GHZ; in ath11k_mac_setup_channels_rates()
9257 band->n_channels = ARRAY_SIZE(ath11k_5ghz_channels); in ath11k_mac_setup_channels_rates()
9258 band->channels = channels; in ath11k_mac_setup_channels_rates()
9259 band->n_bitrates = ath11k_a_rates_size; in ath11k_mac_setup_channels_rates()
9260 band->bitrates = ath11k_a_rates; in ath11k_mac_setup_channels_rates()
9261 ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band; in ath11k_mac_setup_channels_rates()
9268 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()