Lines Matching refs:sband
146 struct ieee80211_supported_band *sband, in ieee80211_determine_chantype() argument
158 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype()
203 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype()
330 struct ieee80211_supported_band *sband = in ieee80211_config_bw() local
348 !ieee80211_get_he_sta_cap(sband)) in ieee80211_config_bw()
365 flags = ieee80211_determine_chantype(sdata, sband, chan, in ieee80211_config_bw()
430 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
444 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
455 struct ieee80211_supported_band *sband, in ieee80211_add_ht_ie() argument
464 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie()
466 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_add_ht_ie()
529 struct ieee80211_supported_band *sband, in ieee80211_add_vht_ie() argument
538 BUILD_BUG_ON(sizeof(vht_cap) != sizeof(sband->vht_cap)); in ieee80211_add_vht_ie()
540 memcpy(&vht_cap, &sband->vht_cap, sizeof(vht_cap)); in ieee80211_add_vht_ie()
615 struct ieee80211_supported_band *sband) in ieee80211_add_he_ie() argument
621 he_cap = ieee80211_get_he_sta_cap(sband); in ieee80211_add_he_ie()
651 struct ieee80211_supported_band *sband; in ieee80211_send_assoc() local
666 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_send_assoc()
676 rates_len = ieee80211_parse_bitrates(&chanctx_conf->def, sband, in ieee80211_send_assoc()
687 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
698 2 + 2 * sband->n_channels + /* supported channels */ in ieee80211_send_assoc()
716 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_send_assoc()
771 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
773 int rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_send_assoc()
786 for (i++; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
789 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_send_assoc()
808 pos = skb_put(skb, 2 * sband->n_channels + 2); in ieee80211_send_assoc()
810 *pos++ = 2 * sband->n_channels; in ieee80211_send_assoc()
811 for (i = 0; i < sband->n_channels; i++) { in ieee80211_send_assoc()
813 sband->channels[i].center_freq); in ieee80211_send_assoc()
880 sband, chan, sdata->smps_mode); in ieee80211_send_assoc()
933 ieee80211_add_vht_ie(sdata, skb, sband, in ieee80211_send_assoc()
941 (sband->band == NL80211_BAND_5GHZ && in ieee80211_send_assoc()
946 ieee80211_add_he_ie(sdata, skb, sband); in ieee80211_send_assoc()
1100 struct ieee80211_supported_band *sband = NULL; in ieee80211_chswitch_work() local
1143 sband = in ieee80211_chswitch_work()
1150 rate_control_rate_update(local, sband, mgd_sta, in ieee80211_chswitch_work()
1167 rate_control_rate_update(local, sband, mgd_sta, in ieee80211_chswitch_work()
2093 struct ieee80211_supported_band *sband; in ieee80211_handle_bss_capability() local
2099 sband = ieee80211_get_sband(sdata); in ieee80211_handle_bss_capability()
2100 if (!sband) in ieee80211_handle_bss_capability()
2112 if (sband->band == NL80211_BAND_5GHZ) in ieee80211_handle_bss_capability()
3115 static void ieee80211_get_rates(struct ieee80211_supported_band *sband, in ieee80211_get_rates() argument
3143 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_get_rates()
3147 br = &sband->bitrates[j]; in ieee80211_get_rates()
3196 struct ieee80211_supported_band *sband; in ieee80211_assoc_success() local
3340 sband = ieee80211_get_sband(sdata); in ieee80211_assoc_success()
3341 if (!sband) { in ieee80211_assoc_success()
3358 ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, in ieee80211_assoc_success()
3362 ieee80211_vht_cap_ie_to_sta_vht_cap(sdata, sband, in ieee80211_assoc_success()
3367 ieee80211_he_cap_ie_to_sta_he_cap(sdata, sband, in ieee80211_assoc_success()
4692 ieee80211_verify_sta_he_mcs_support(struct ieee80211_supported_band *sband, in ieee80211_verify_sta_he_mcs_support() argument
4696 ieee80211_get_he_sta_cap(sband); in ieee80211_verify_sta_he_mcs_support()
4762 struct ieee80211_supported_band *sband; in ieee80211_prep_channel() local
4768 sband = local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_prep_channel()
4777 sband->ht_cap.ht_supported) { in ieee80211_prep_channel()
4795 sband->vht_cap.vht_supported) { in ieee80211_prep_channel()
4817 if (!ieee80211_get_he_sta_cap(sband)) in ieee80211_prep_channel()
4833 if (!ieee80211_verify_sta_he_mcs_support(sband, he_oper)) in ieee80211_prep_channel()
4839 for (i = 0; i < sband->n_channels; i++) { in ieee80211_prep_channel()
4840 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | in ieee80211_prep_channel()
4851 ifmgd->flags |= ieee80211_determine_chantype(sdata, sband, in ieee80211_prep_channel()
4930 struct ieee80211_supported_band *sband; in ieee80211_prep_connection() local
4934 sband = local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_prep_connection()
4975 ieee80211_get_rates(sband, bss->supp_rates, in ieee80211_prep_connection()
5239 struct ieee80211_supported_band *sband; in ieee80211_mgd_assoc() local
5319 sband = local->hw.wiphy->bands[req->bss->channel->band]; in ieee80211_mgd_assoc()
5320 if (!sband->ht_cap.ht_supported || in ieee80211_mgd_assoc()
5331 if (!sband->vht_cap.vht_supported || in ieee80211_mgd_assoc()
5453 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_mgd_assoc()
5458 sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in ieee80211_mgd_assoc()