Lines Matching defs:band

567 	switch (chandef->chan->band) {
2249 enum nl80211_band band;
2259 band = def.chan->band;
2260 sband = ar->hw->wiphy->bands[band];
2261 ratemask = sta->deflink.supp_rates[band];
2262 ratemask &= arvif->bitrate_mask.control[band].legacy;
2309 enum nl80211_band band;
2324 band = def.chan->band;
2325 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
2326 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2350 if (arvif->bitrate_mask.control[band].gi != NL80211_TXRATE_FORCE_LGI) {
2560 enum nl80211_band band;
2572 band = def.chan->band;
2573 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2580 if (def.chan->band == NL80211_BAND_2GHZ)
2735 enum nl80211_band band;
2743 band = def.chan->band;
2744 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
2745 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
2747 switch (band) {
3369 enum nl80211_band band;
3381 for (band = 0; band < NUM_NL80211_BANDS; band++) {
3382 if (!bands[band])
3385 for (i = 0; i < bands[band]->n_channels; i++) {
3386 if (bands[band]->channels[i].flags &
3400 for (band = 0; band < NUM_NL80211_BANDS; band++) {
3401 if (!bands[band])
3404 for (i = 0; i < bands[band]->n_channels; i++) {
3405 channel = &bands[band]->channels[i];
3446 if (channel->band == NL80211_BAND_2GHZ)
3508 /* Target allows setting up per-band regdomain but ath_common provides
3523 struct ieee80211_supported_band *band)
3528 for (i = 0; i < band->n_channels; i++) {
3529 if (band->channels[i].center_freq < ar->low_5ghz_chan ||
3530 band->channels[i].center_freq > ar->high_5ghz_chan)
3531 band->channels[i].flags |=
4991 struct ieee80211_supported_band *band;
4999 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
5000 band->ht_cap = ht_cap;
5003 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
5004 band->ht_cap = ht_cap;
5005 band->vht_cap = vht_cap;
5078 * If external Front End module used in hardware, then default base band timing
6059 sband = ar->hw->wiphy->bands[def->chan->band];
6088 enum nl80211_band band;
6273 band = def.chan->band;
6274 mcast_rate = vif->bss_conf.mcast_rate[band];
6718 enum nl80211_band band;
6732 band = def.chan->band;
6733 ht_mcs_mask = arvif->bitrate_mask.control[band].ht_mcs;
6734 vht_mcs_mask = arvif->bitrate_mask.control[band].vht_mcs;
6885 enum nl80211_band band,
6892 num_rates += hweight32(mask->control[band].legacy);
6894 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++)
6895 num_rates += hweight8(mask->control[band].ht_mcs[i]);
6898 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
6899 tmp = hweight16(mask->control[band].vht_mcs[i]);
6909 enum nl80211_band band,
6922 if (hweight32(mask->control[band].legacy) == 1) {
6923 rate_idx = ffs(mask->control[band].legacy) - 1;
6944 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) {
6945 if (hweight8(mask->control[band].ht_mcs[i]) == 1) {
6949 (ffs(mask->control[band].ht_mcs[i]) - 1);
6956 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
6957 if (hweight16(mask->control[band].vht_mcs[i]) == 1) {
6961 (ffs(mask->control[band].vht_mcs[i]) - 1);
7012 enum nl80211_band band;
7025 band = def.chan->band;
7027 if (!ath10k_mac_bitrate_mask_has_single_rate(ar, band, mask,
7032 ret = ath10k_mac_bitrate_mask_get_single_rate(ar, band, mask,
8213 enum nl80211_band band,
8217 struct ieee80211_supported_band *sband = &ar->mac.sbands[band];
8223 if (mask->control[band].legacy)
8226 for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++) {
8227 if (mask->control[band].ht_mcs[i] == 0)
8229 else if (mask->control[band].ht_mcs[i] ==
8236 for (i = 0; i < ARRAY_SIZE(mask->control[band].vht_mcs); i++) {
8237 if (mask->control[band].vht_mcs[i] == 0)
8239 else if (mask->control[band].vht_mcs[i] ==
8306 enum nl80211_band band,
8318 vht_mcs = mask->control[band].vht_mcs[i];
8403 enum nl80211_band band;
8419 band = def.chan->band;
8420 ht_mcs_mask = mask->control[band].ht_mcs;
8421 vht_mcs_mask = mask->control[band].vht_mcs;
8424 sgi = mask->control[band].gi;
8438 if (ath10k_mac_bitrate_mask_has_single_rate(ar, band, mask,
8440 ret = ath10k_mac_bitrate_mask_get_single_rate(ar, band, mask,
8448 } else if (ath10k_mac_bitrate_mask_get_single_nss(ar, band, mask,
8458 if (!ath10k_mac_can_set_bitrate_mask(ar, band, mask,
8469 ath10k_mac_bitrate_mask_get_single_rate(ar, band, mask,
9482 .band = NL80211_BAND_2GHZ, \
9491 .band = NL80211_BAND_5GHZ, \
9944 struct ieee80211_supported_band *band;
9969 band = &ar->mac.sbands[NL80211_BAND_2GHZ];
9970 band->n_channels = ARRAY_SIZE(ath10k_2ghz_channels);
9971 band->channels = channels;
9974 band->n_bitrates = ath10k_g_rates_rev2_size;
9975 band->bitrates = ath10k_g_rates_rev2;
9977 band->n_bitrates = ath10k_g_rates_size;
9978 band->bitrates = ath10k_g_rates;
9981 ar->hw->wiphy->bands[NL80211_BAND_2GHZ] = band;
9993 band = &ar->mac.sbands[NL80211_BAND_5GHZ];
9994 band->n_channels = ARRAY_SIZE(ath10k_5ghz_channels);
9995 band->channels = channels;
9996 band->n_bitrates = ath10k_a_rates_size;
9997 band->bitrates = ath10k_a_rates;
9998 ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band;