Lines Matching refs:sband
144 struct ieee80211_supported_band *sband, in ieee80211_determine_chantype() argument
156 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype()
217 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype()
344 struct ieee80211_supported_band *sband; in ieee80211_config_bw() local
374 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_config_bw()
377 flags = ieee80211_determine_chantype(sdata, sband, chan, in ieee80211_config_bw()
442 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
456 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
467 struct ieee80211_supported_band *sband, in ieee80211_add_ht_ie() argument
476 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie()
478 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_add_ht_ie()
540 struct ieee80211_supported_band *sband, in ieee80211_add_vht_ie() argument
549 BUILD_BUG_ON(sizeof(vht_cap) != sizeof(sband->vht_cap)); in ieee80211_add_vht_ie()
551 memcpy(&vht_cap, &sband->vht_cap, sizeof(vht_cap)); in ieee80211_add_vht_ie()
632 struct ieee80211_supported_band *sband; in ieee80211_send_assoc() local
648 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_send_assoc()
658 rates_len = ieee80211_parse_bitrates(&chanctx_conf->def, sband, in ieee80211_send_assoc()
669 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
670 if ((rate_flags & sband->bitrates[i].flags) in ieee80211_send_assoc()
683 2 + 2 * sband->n_channels + /* supported channels */ in ieee80211_send_assoc()
696 if (sband->band == IEEE80211_BAND_2GHZ) { in ieee80211_send_assoc()
751 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
753 int rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_send_assoc()
766 for (i++; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
769 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_send_assoc()
788 pos = skb_put(skb, 2 * sband->n_channels + 2); in ieee80211_send_assoc()
790 *pos++ = 2 * sband->n_channels; in ieee80211_send_assoc()
791 for (i = 0; i < sband->n_channels; i++) { in ieee80211_send_assoc()
793 sband->channels[i].center_freq); in ieee80211_send_assoc()
845 sband, chan, sdata->smps_mode); in ieee80211_send_assoc()
878 ieee80211_add_vht_ie(sdata, skb, sband, in ieee80211_send_assoc()
2804 static void ieee80211_get_rates(struct ieee80211_supported_band *sband, in ieee80211_get_rates() argument
2832 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_get_rates()
2836 br = &sband->bitrates[j]; in ieee80211_get_rates()
2861 struct ieee80211_supported_band *sband; in ieee80211_assoc_success() local
3000 sband = local->hw.wiphy->bands[ieee80211_get_sdata_band(sdata)]; in ieee80211_assoc_success()
3004 ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, in ieee80211_assoc_success()
3008 ieee80211_vht_cap_ie_to_sta_vht_cap(sdata, sband, in ieee80211_assoc_success()
4203 struct ieee80211_supported_band *sband; in ieee80211_prep_channel() local
4209 sband = local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_prep_channel()
4218 sband->ht_cap.ht_supported) { in ieee80211_prep_channel()
4236 sband->vht_cap.vht_supported) { in ieee80211_prep_channel()
4260 for (i = 0; i < sband->n_channels; i++) { in ieee80211_prep_channel()
4261 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | in ieee80211_prep_channel()
4272 ifmgd->flags |= ieee80211_determine_chantype(sdata, sband, in ieee80211_prep_channel()
4317 struct ieee80211_supported_band *sband; in ieee80211_prep_connection() local
4321 sband = local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_prep_connection()
4366 ieee80211_get_rates(sband, bss->supp_rates, in ieee80211_prep_connection()
4582 struct ieee80211_supported_band *sband; in ieee80211_mgd_assoc() local
4658 sband = local->hw.wiphy->bands[req->bss->channel->band]; in ieee80211_mgd_assoc()
4659 if (!sband->ht_cap.ht_supported || in ieee80211_mgd_assoc()
4670 if (!sband->vht_cap.vht_supported || in ieee80211_mgd_assoc()
4775 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_mgd_assoc()
4780 sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in ieee80211_mgd_assoc()