Lines Matching defs:band

556 	switch (chandef->chan->band) {
2237 enum nl80211_band band;
2247 band = def.chan->band;
2248 sband = ar->hw->wiphy->bands[band];
2249 ratemask = sta->supp_rates[band];
2250 ratemask &= arvif->bitrate_mask.control[band].legacy;
2297 enum nl80211_band band;
2312 band = def.chan->band;
2313 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
2314 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2338 if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) {
2547 enum nl80211_band band;
2559 band = def.chan->band;
2560 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2567 if (def.chan->band == NL80211_BAND_2GHZ)
2720 enum nl80211_band band;
2728 band = def.chan->band;
2729 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
2730 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2732 switch (band) {
3198 enum nl80211_band band;
3210 for (band = 0; band < NUM_NL80211_BANDS; band++) {
3211 if (!bands[band])
3214 for (i = 0; i < bands[band]->n_channels; i++) {
3215 if (bands[band]->channels[i].flags &
3229 for (band = 0; band < NUM_NL80211_BANDS; band++) {
3230 if (!bands[band])
3233 for (i = 0; i < bands[band]->n_channels; i++) {
3234 channel = &bands[band]->channels[i];
3275 if (channel->band == NL80211_BAND_2GHZ)
3337 /* Target allows setting up per-band regdomain but ath_common provides
3352 struct ieee80211_supported_band *band)
3357 for (i = 0; i < band->n_channels; i++) {
3358 if (band->channels[i].center_freq < ar->low_5ghz_chan ||
3359 band->channels[i].center_freq > ar->high_5ghz_chan)
3360 band->channels[i].flags |=
4800 struct ieee80211_supported_band *band;
4808 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
4809 band->ht_cap = ht_cap;
4812 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
4813 band->ht_cap = ht_cap;
4814 band->vht_cap = vht_cap;
4887 * If external Front End module used in hardware, then default base band timing
5912 sband = ar->hw->wiphy->bands[def->chan->band];
5941 enum nl80211_band band;
6125 band = def.chan->band;
6126 mcast_rate = vif->bss_conf.mcast_rate[band];
6569 enum nl80211_band band;
6583 band = def.chan->band;
6584 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
6585 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
6736 enum nl80211_band band,
6743 num_rates += hweight32(mask->control[band].legacy);
6745 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++)
6746 num_rates += hweight8(mask->control[band].ht_mcs[i]);
6749 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
6750 tmp = hweight16(mask->control[band].vht_mcs[i]);
6760 enum nl80211_band band,
6773 if (hweight32(mask->control[band].legacy) == 1) {
6774 rate_idx = ffs(mask->control[band].legacy) - 1;
6795 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) {
6796 if (hweight8(mask->control[band].ht_mcs[i]) == 1) {
6800 (ffs(mask->control[band].ht_mcs[i]) - 1);
6807 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
6808 if (hweight16(mask->control[band].vht_mcs[i]) == 1) {
6812 (ffs(mask->control[band].vht_mcs[i]) - 1);
6860 enum nl80211_band band;
6873 band = def.chan->band;
6875 if (!ath10k_mac_bitrate_mask_has_single_rate(ar, band, mask,
6880 ret = ath10k_mac_bitrate_mask_get_single_rate(ar, band, mask,
8052 enum nl80211_band band,
8056 struct ieee80211_supported_band *sband = &ar->mac.sbands[band];
8062 if (mask->control[band].legacy)
8065 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) {
8066 if (mask->control[band].ht_mcs[i] == 0)
8068 else if (mask->control[band].ht_mcs[i] ==
8075 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
8076 if (mask->control[band].vht_mcs[i] == 0)
8078 else if (mask->control[band].vht_mcs[i] ==
8145 enum nl80211_band band,
8157 vht_mcs = mask->control[band].vht_mcs[i];
8242 enum nl80211_band band;
8258 band = def.chan->band;
8259 ht_mcs_mask = mask->control[band].ht_mcs;
8260 vht_mcs_mask = mask->control[band].vht_mcs;
8263 sgi = mask->control[band].gi;
8277 if (ath10k_mac_bitrate_mask_has_single_rate(ar, band, mask,
8279 ret = ath10k_mac_bitrate_mask_get_single_rate(ar, band, mask,
8287 } else if (ath10k_mac_bitrate_mask_get_single_nss(ar, band, mask,
8297 if (!ath10k_mac_can_set_bitrate_mask(ar, band, mask,
8308 ath10k_mac_bitrate_mask_get_single_rate(ar, band, mask,
9315 .band = NL80211_BAND_2GHZ, \
9324 .band = NL80211_BAND_5GHZ, \
9779 struct ieee80211_supported_band *band;
9804 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
9805 band->n_channels = ARRAY_SIZE(ath10k_2ghz_channels);
9806 band->channels = channels;
9809 band->n_bitrates = ath10k_g_rates_rev2_size;
9810 band->bitrates = ath10k_g_rates_rev2;
9812 band->n_bitrates = ath10k_g_rates_size;
9813 band->bitrates = ath10k_g_rates;
9816 ar->hw->wiphy->bands[NL80211_BAND_2GHZ] = band;
9828 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
9829 band->n_channels = ARRAY_SIZE(ath10k_5ghz_channels);
9830 band->channels = channels;
9831 band->n_bitrates = ath10k_a_rates_size;
9832 band->bitrates = ath10k_a_rates;
9833 ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band;