Lines Matching refs:band

20 	.band                   = NL80211_BAND_2GHZ, \
29 .band = NL80211_BAND_5GHZ, \
38 .band = NL80211_BAND_6GHZ, \
774 arg.channel.mode = ath11k_phymodes[chandef->chan->band][chandef->width]; in ath11k_mac_monitor_vdev_start()
1367 enum nl80211_band band; in ath11k_peer_assoc_h_rates() local
1377 band = def.chan->band; in ath11k_peer_assoc_h_rates()
1378 sband = ar->hw->wiphy->bands[band]; in ath11k_peer_assoc_h_rates()
1379 ratemask = sta->supp_rates[band]; in ath11k_peer_assoc_h_rates()
1380 ratemask &= arvif->bitrate_mask.control[band].legacy; in ath11k_peer_assoc_h_rates()
1427 enum nl80211_band band; in ath11k_peer_assoc_h_ht() local
1441 band = def.chan->band; in ath11k_peer_assoc_h_ht()
1442 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_peer_assoc_h_ht()
1470 if (arvif->bitrate_mask.control[band].gi == NL80211_TXRATE_DEFAULT_GI) in ath11k_peer_assoc_h_ht()
1474 if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) { in ath11k_peer_assoc_h_ht()
1624 enum nl80211_band band; in ath11k_peer_assoc_h_vht() local
1638 band = def.chan->band; in ath11k_peer_assoc_h_vht()
1639 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_peer_assoc_h_vht()
1649 if (def.chan->band == NL80211_BAND_2GHZ) in ath11k_peer_assoc_h_vht()
1823 enum nl80211_band band; in ath11k_peer_assoc_h_he() local
1837 band = def.chan->band; in ath11k_peer_assoc_h_he()
1838 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs; in ath11k_peer_assoc_h_he()
2026 enum nl80211_band band; in ath11k_peer_assoc_h_he_6ghz() local
2032 band = def.chan->band; in ath11k_peer_assoc_h_he_6ghz()
2034 if (!arg->he_flag || band != NL80211_BAND_6GHZ || !sta->he_6ghz_capa.capa) in ath11k_peer_assoc_h_he_6ghz()
2268 enum nl80211_band band; in ath11k_peer_assoc_h_phymode() local
2277 band = def.chan->band; in ath11k_peer_assoc_h_phymode()
2278 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_peer_assoc_h_phymode()
2279 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_peer_assoc_h_phymode()
2280 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs; in ath11k_peer_assoc_h_phymode()
2282 switch (band) { in ath11k_peer_assoc_h_phymode()
2537 sband = ar->hw->wiphy->bands[def->chan->band]; in ath11k_recalculate_mgmt_rate()
2767 enum nl80211_band band; in ath11k_mac_op_bss_info_changed() local
2947 band = def.chan->band; in ath11k_mac_op_bss_info_changed()
2948 mcast_rate = vif->bss_conf.mcast_rate[band]; in ath11k_mac_op_bss_info_changed()
3538 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_vht_rates() argument
3544 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) in ath11k_mac_bitrate_mask_num_vht_rates()
3545 num_rates += hweight16(mask->control[band].vht_mcs[i]); in ath11k_mac_bitrate_mask_num_vht_rates()
3552 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_he_rates() argument
3558 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) in ath11k_mac_bitrate_mask_num_he_rates()
3559 num_rates += hweight16(mask->control[band].he_mcs[i]); in ath11k_mac_bitrate_mask_num_he_rates()
3568 enum nl80211_band band) in ath11k_mac_set_peer_vht_fixed_rate() argument
3579 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) { in ath11k_mac_set_peer_vht_fixed_rate()
3580 if (hweight16(mask->control[band].vht_mcs[i]) == 1) { in ath11k_mac_set_peer_vht_fixed_rate()
3582 vht_rate = ffs(mask->control[band].vht_mcs[i]) - 1; in ath11k_mac_set_peer_vht_fixed_rate()
3618 enum nl80211_band band) in ath11k_mac_set_peer_he_fixed_rate() argument
3629 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) { in ath11k_mac_set_peer_he_fixed_rate()
3630 if (hweight16(mask->control[band].he_mcs[i]) == 1) { in ath11k_mac_set_peer_he_fixed_rate()
3632 he_rate = ffs(mask->control[band].he_mcs[i]) - 1; in ath11k_mac_set_peer_he_fixed_rate()
3674 enum nl80211_band band; in ath11k_station_assoc() local
3683 band = def.chan->band; in ath11k_station_assoc()
3701 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask); in ath11k_station_assoc()
3702 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask); in ath11k_station_assoc()
3711 band); in ath11k_station_assoc()
3716 band); in ath11k_station_assoc()
3786 enum nl80211_band band; in ath11k_sta_rc_update_wk() local
3803 band = def.chan->band; in ath11k_sta_rc_update_wk()
3804 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs; in ath11k_sta_rc_update_wk()
3805 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs; in ath11k_sta_rc_update_wk()
3806 he_mcs_mask = arvif->bitrate_mask.control[band].he_mcs; in ath11k_sta_rc_update_wk()
3858 num_vht_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, in ath11k_sta_rc_update_wk()
3860 num_he_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, in ath11k_sta_rc_update_wk()
3876 band); in ath11k_sta_rc_update_wk()
3879 band); in ath11k_sta_rc_update_wk()
4593 struct ieee80211_supported_band *band; in ath11k_mac_setup_ht_vht_cap() local
4602 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_ht_vht_cap()
4603 ht_cap = cap->band[NL80211_BAND_2GHZ].ht_cap_info; in ath11k_mac_setup_ht_vht_cap()
4606 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap()
4613 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_ht_vht_cap()
4614 ht_cap = cap->band[NL80211_BAND_5GHZ].ht_cap_info; in ath11k_mac_setup_ht_vht_cap()
4617 band->ht_cap = ath11k_create_ht_cap(ar, ht_cap, in ath11k_mac_setup_ht_vht_cap()
4619 band->vht_cap = ath11k_create_vht_cap(ar, rate_cap_tx_chainmask, in ath11k_mac_setup_ht_vht_cap()
4765 int band) in ath11k_mac_copy_he_cap() argument
4771 struct ath11k_band_cap *band_cap = &cap->band[band]; in ath11k_mac_copy_he_cap()
4838 if (band == NL80211_BAND_6GHZ) { in ath11k_mac_copy_he_cap()
4851 struct ieee80211_supported_band *band; in ath11k_mac_setup_he_cap() local
4858 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_he_cap()
4859 band->iftype_data = ar->mac.iftype[NL80211_BAND_2GHZ]; in ath11k_mac_setup_he_cap()
4860 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
4867 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_he_cap()
4868 band->iftype_data = ar->mac.iftype[NL80211_BAND_5GHZ]; in ath11k_mac_setup_he_cap()
4869 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
4877 band = &ar->mac.sbands[NL80211_BAND_6GHZ]; in ath11k_mac_setup_he_cap()
4878 band->iftype_data = ar->mac.iftype[NL80211_BAND_6GHZ]; in ath11k_mac_setup_he_cap()
4879 band->n_iftype_data = count; in ath11k_mac_setup_he_cap()
5374 cap_band = &pdev_cap->band[NL80211_BAND_2GHZ]; in ath11k_mac_prepare_he_mode()
5376 cap_band = &pdev_cap->band[NL80211_BAND_5GHZ]; in ath11k_mac_prepare_he_mode()
5969 ath11k_phymodes[chandef->chan->band][chandef->width]; in ath11k_mac_vdev_start_restart()
6574 enum nl80211_band band, in ath11k_mac_bitrate_mask_num_ht_rates() argument
6580 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) in ath11k_mac_bitrate_mask_num_ht_rates()
6581 num_rates += hweight16(mask->control[band].ht_mcs[i]); in ath11k_mac_bitrate_mask_num_ht_rates()
6588 enum nl80211_band band, in ath11k_mac_has_single_legacy_rate() argument
6593 num_rates = hweight32(mask->control[band].legacy); in ath11k_mac_has_single_legacy_rate()
6595 if (ath11k_mac_bitrate_mask_num_ht_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
6598 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
6601 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask)) in ath11k_mac_has_single_legacy_rate()
6623 enum nl80211_band band, in ath11k_mac_bitrate_mask_get_single_nss() argument
6627 struct ieee80211_supported_band *sband = &ar->mac.sbands[band]; in ath11k_mac_bitrate_mask_get_single_nss()
6639 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
6640 if (mask->control[band].ht_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
6642 else if (mask->control[band].ht_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
6649 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
6650 if (mask->control[band].vht_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
6652 else if (mask->control[band].vht_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
6661 for (i = 0; i < ARRAY_SIZE(mask->control[band].he_mcs); i++) { in ath11k_mac_bitrate_mask_get_single_nss()
6662 if (mask->control[band].he_mcs[i] == 0) in ath11k_mac_bitrate_mask_get_single_nss()
6665 if (mask->control[band].he_mcs[i] == in ath11k_mac_bitrate_mask_get_single_nss()
6688 enum nl80211_band band, in ath11k_mac_get_single_legacy_rate() argument
6697 if (hweight32(mask->control[band].legacy) != 1) in ath11k_mac_get_single_legacy_rate()
6700 rate_idx = ffs(mask->control[band].legacy) - 1; in ath11k_mac_get_single_legacy_rate()
6702 if (band == NL80211_BAND_5GHZ || band == NL80211_BAND_6GHZ) in ath11k_mac_get_single_legacy_rate()
6884 enum nl80211_band band, in ath11k_mac_vht_mcs_range_present() argument
6891 vht_mcs = mask->control[band].vht_mcs[i]; in ath11k_mac_vht_mcs_range_present()
6909 enum nl80211_band band, in ath11k_mac_he_mcs_range_present() argument
6916 he_mcs = mask->control[band].he_mcs[i]; in ath11k_mac_he_mcs_range_present()
6964 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
6973 vht_mcs_mask = mask->control[band].vht_mcs; in ath11k_mac_validate_vht_he_fixed_rate_settings()
6974 he_mcs_mask = mask->control[band].he_mcs; in ath11k_mac_validate_vht_he_fixed_rate_settings()
6976 if (ath11k_mac_bitrate_mask_num_vht_rates(ar, band, mask) == 1) in ath11k_mac_validate_vht_he_fixed_rate_settings()
6979 if (ath11k_mac_bitrate_mask_num_he_rates(ar, band, mask) == 1) in ath11k_mac_validate_vht_he_fixed_rate_settings()
7019 enum nl80211_band band; in ath11k_mac_op_set_bitrate_mask() local
7037 band = def.chan->band; in ath11k_mac_op_set_bitrate_mask()
7038 ht_mcs_mask = mask->control[band].ht_mcs; in ath11k_mac_op_set_bitrate_mask()
7039 vht_mcs_mask = mask->control[band].vht_mcs; in ath11k_mac_op_set_bitrate_mask()
7040 he_mcs_mask = mask->control[band].he_mcs; in ath11k_mac_op_set_bitrate_mask()
7043 sgi = mask->control[band].gi; in ath11k_mac_op_set_bitrate_mask()
7047 he_gi = mask->control[band].he_gi; in ath11k_mac_op_set_bitrate_mask()
7048 he_ltf = mask->control[band].he_ltf; in ath11k_mac_op_set_bitrate_mask()
7058 if (ath11k_mac_has_single_legacy_rate(ar, band, mask)) { in ath11k_mac_op_set_bitrate_mask()
7059 ret = ath11k_mac_get_single_legacy_rate(ar, band, mask, &rate, in ath11k_mac_op_set_bitrate_mask()
7069 } else if (ath11k_mac_bitrate_mask_get_single_nss(ar, band, mask, in ath11k_mac_op_set_bitrate_mask()
7082 if (!ath11k_mac_validate_vht_he_fixed_rate_settings(ar, band, mask)) in ath11k_mac_op_set_bitrate_mask()
7110 num_rates = ath11k_mac_bitrate_mask_num_vht_rates(ar, band, in ath11k_mac_op_set_bitrate_mask()
7113 if (!ath11k_mac_vht_mcs_range_present(ar, band, mask) && in ath11k_mac_op_set_bitrate_mask()
7124 num_rates = ath11k_mac_bitrate_mask_num_he_rates(ar, band, in ath11k_mac_op_set_bitrate_mask()
7129 if (!ath11k_mac_he_mcs_range_present(ar, band, mask) && in ath11k_mac_op_set_bitrate_mask()
7342 struct ieee80211_supported_band *band, in ath11k_mac_update_ch_list() argument
7350 for (i = 0; i < band->n_channels; i++) { in ath11k_mac_update_ch_list()
7351 if (band->channels[i].center_freq < freq_low || in ath11k_mac_update_ch_list()
7352 band->channels[i].center_freq > freq_high) in ath11k_mac_update_ch_list()
7353 band->channels[i].flags |= IEEE80211_CHAN_DISABLED; in ath11k_mac_update_ch_list()
7357 static u32 ath11k_get_phy_id(struct ath11k *ar, u32 band) in ath11k_get_phy_id() argument
7362 if (band == WMI_HOST_WLAN_2G_CAP) in ath11k_get_phy_id()
7363 return pdev_cap->band[NL80211_BAND_2GHZ].phy_id; in ath11k_get_phy_id()
7365 if (band == WMI_HOST_WLAN_5G_CAP) in ath11k_get_phy_id()
7366 return pdev_cap->band[NL80211_BAND_5GHZ].phy_id; in ath11k_get_phy_id()
7368 ath11k_warn(ar->ab, "unsupported phy cap:%d\n", band); in ath11k_get_phy_id()
7376 struct ieee80211_supported_band *band; in ath11k_mac_setup_channels_rates() local
7396 band = &ar->mac.sbands[NL80211_BAND_2GHZ]; in ath11k_mac_setup_channels_rates()
7397 band->band = NL80211_BAND_2GHZ; in ath11k_mac_setup_channels_rates()
7398 band->n_channels = ARRAY_SIZE(ath11k_2ghz_channels); in ath11k_mac_setup_channels_rates()
7399 band->channels = channels; in ath11k_mac_setup_channels_rates()
7400 band->n_bitrates = ath11k_g_rates_size; in ath11k_mac_setup_channels_rates()
7401 band->bitrates = ath11k_g_rates; in ath11k_mac_setup_channels_rates()
7402 ar->hw->wiphy->bands[NL80211_BAND_2GHZ] = band; in ath11k_mac_setup_channels_rates()
7408 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()
7423 band = &ar->mac.sbands[NL80211_BAND_6GHZ]; in ath11k_mac_setup_channels_rates()
7424 band->band = NL80211_BAND_6GHZ; in ath11k_mac_setup_channels_rates()
7425 band->n_channels = ARRAY_SIZE(ath11k_6ghz_channels); in ath11k_mac_setup_channels_rates()
7426 band->channels = channels; in ath11k_mac_setup_channels_rates()
7427 band->n_bitrates = ath11k_a_rates_size; in ath11k_mac_setup_channels_rates()
7428 band->bitrates = ath11k_a_rates; in ath11k_mac_setup_channels_rates()
7429 ar->hw->wiphy->bands[NL80211_BAND_6GHZ] = band; in ath11k_mac_setup_channels_rates()
7436 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()
7451 band = &ar->mac.sbands[NL80211_BAND_5GHZ]; in ath11k_mac_setup_channels_rates()
7452 band->band = NL80211_BAND_5GHZ; in ath11k_mac_setup_channels_rates()
7453 band->n_channels = ARRAY_SIZE(ath11k_5ghz_channels); in ath11k_mac_setup_channels_rates()
7454 band->channels = channels; in ath11k_mac_setup_channels_rates()
7455 band->n_bitrates = ath11k_a_rates_size; in ath11k_mac_setup_channels_rates()
7456 band->bitrates = ath11k_a_rates; in ath11k_mac_setup_channels_rates()
7457 ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band; in ath11k_mac_setup_channels_rates()
7464 ath11k_mac_update_ch_list(ar, band, in ath11k_mac_setup_channels_rates()