Lines Matching refs:sband
151 struct ieee80211_supported_band *sband, in ieee80211_determine_chantype() argument
163 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype()
224 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype()
351 struct ieee80211_supported_band *sband; in ieee80211_config_bw() local
381 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_config_bw()
384 flags = ieee80211_determine_chantype(sdata, sband, chan, in ieee80211_config_bw()
449 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
463 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
474 struct ieee80211_supported_band *sband, in ieee80211_add_ht_ie() argument
483 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie()
485 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_add_ht_ie()
543 struct ieee80211_supported_band *sband, in ieee80211_add_vht_ie() argument
551 BUILD_BUG_ON(sizeof(vht_cap) != sizeof(sband->vht_cap)); in ieee80211_add_vht_ie()
553 memcpy(&vht_cap, &sband->vht_cap, sizeof(vht_cap)); in ieee80211_add_vht_ie()
607 struct ieee80211_supported_band *sband; in ieee80211_send_assoc() local
623 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_send_assoc()
633 rates_len = ieee80211_parse_bitrates(&chanctx_conf->def, sband, in ieee80211_send_assoc()
644 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
645 if ((rate_flags & sband->bitrates[i].flags) in ieee80211_send_assoc()
658 2 + 2 * sband->n_channels + /* supported channels */ in ieee80211_send_assoc()
671 if (sband->band == IEEE80211_BAND_2GHZ) { in ieee80211_send_assoc()
728 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
730 int rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_send_assoc()
743 for (i++; i < sband->n_bitrates; i++) { in ieee80211_send_assoc()
746 rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in ieee80211_send_assoc()
765 pos = skb_put(skb, 2 * sband->n_channels + 2); in ieee80211_send_assoc()
767 *pos++ = 2 * sband->n_channels; in ieee80211_send_assoc()
768 for (i = 0; i < sband->n_channels; i++) { in ieee80211_send_assoc()
770 sband->channels[i].center_freq); in ieee80211_send_assoc()
822 sband, chan, sdata->smps_mode); in ieee80211_send_assoc()
855 ieee80211_add_vht_ie(sdata, skb, sband, in ieee80211_send_assoc()
2740 static void ieee80211_get_rates(struct ieee80211_supported_band *sband, in ieee80211_get_rates() argument
2768 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_get_rates()
2772 br = &sband->bitrates[j]; in ieee80211_get_rates()
2825 struct ieee80211_supported_band *sband; in ieee80211_assoc_success() local
2964 sband = local->hw.wiphy->bands[ieee80211_get_sdata_band(sdata)]; in ieee80211_assoc_success()
2968 ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, in ieee80211_assoc_success()
2972 ieee80211_vht_cap_ie_to_sta_vht_cap(sdata, sband, in ieee80211_assoc_success()
4217 struct ieee80211_supported_band *sband; in ieee80211_prep_channel() local
4221 sband = local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_prep_channel()
4230 sband->ht_cap.ht_supported) { in ieee80211_prep_channel()
4248 sband->vht_cap.vht_supported) { in ieee80211_prep_channel()
4270 ifmgd->flags |= ieee80211_determine_chantype(sdata, sband, in ieee80211_prep_channel()
4314 struct ieee80211_supported_band *sband; in ieee80211_prep_connection() local
4319 sband = local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_prep_connection()
4336 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_prep_connection()
4340 (sband->ht_cap.cap & in ieee80211_prep_connection()
4371 ieee80211_get_rates(sband, bss->supp_rates, in ieee80211_prep_connection()
4622 struct ieee80211_supported_band *sband; in ieee80211_mgd_assoc() local
4738 sband = local->hw.wiphy->bands[req->bss->channel->band]; in ieee80211_mgd_assoc()
4739 if (!sband->ht_cap.ht_supported || in ieee80211_mgd_assoc()
4750 if (!sband->vht_cap.vht_supported || in ieee80211_mgd_assoc()