Lines Matching refs:sband
50 struct ieee80211_supported_band *sband; in ieee80211_ibss_build_presp() local
93 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
100 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_ibss_build_presp()
101 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in ieee80211_ibss_build_presp()
103 if (sband->bitrates[i].bitrate > 110 && in ieee80211_ibss_build_presp()
113 for (ri = 0; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp()
114 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp()
129 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_ibss_build_presp()
157 for (; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp()
158 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp()
179 sband->ht_cap.ht_supported) { in ieee80211_ibss_build_presp()
182 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_ibss_build_presp()
191 pos = ieee80211_ie_build_ht_oper(pos, &sband->ht_cap, in ieee80211_ibss_build_presp()
197 sband->vht_cap.vht_supported) { in ieee80211_ibss_build_presp()
198 pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
199 sband->vht_cap.cap); in ieee80211_ibss_build_presp()
200 pos = ieee80211_ie_build_vht_oper(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
402 struct ieee80211_supported_band *sband; in ieee80211_sta_join_ibss() local
444 sband = sdata->local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_sta_join_ibss()
454 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_sta_join_ibss()
456 if ((rate_flags & sband->bitrates[j].flags) in ieee80211_sta_join_ibss()
460 brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, in ieee80211_sta_join_ibss()
613 struct ieee80211_supported_band *sband; in ieee80211_ibss_add_sta() local
653 sband = local->hw.wiphy->bands[band]; in ieee80211_ibss_add_sta()
655 ieee80211_mandatory_rates(sband, scan_width); in ieee80211_ibss_add_sta()
994 struct ieee80211_supported_band *sband; in ieee80211_update_sta_info() local
1004 sband = local->hw.wiphy->bands[band]; in ieee80211_update_sta_info()
1005 if (WARN_ON(!sband)) in ieee80211_update_sta_info()
1026 ieee80211_mandatory_rates(sband, scan_width); in ieee80211_update_sta_info()
1060 rates_updated |= ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, in ieee80211_update_sta_info()
1076 ieee80211_vht_cap_ie_to_sta_vht_cap(sdata, sband, in ieee80211_update_sta_info()
1208 struct ieee80211_supported_band *sband; in ieee80211_ibss_rx_no_sta() local
1243 sband = local->hw.wiphy->bands[band]; in ieee80211_ibss_rx_no_sta()
1245 ieee80211_mandatory_rates(sband, scan_width); in ieee80211_ibss_rx_no_sta()
1761 struct ieee80211_supported_band *sband; in ieee80211_ibss_join() local
1804 sband = local->hw.wiphy->bands[params->chandef.chan->band]; in ieee80211_ibss_join()
1805 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_ibss_join()
1806 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in ieee80211_ibss_join()