Home
last modified time | relevance | path

Searched refs:sband (Results 1 – 25 of 129) sorted by relevance

123456

/linux/net/mac80211/
H A Drate.c38 struct ieee80211_supported_band *sband; in rate_control_rate_init() local
58 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
61 if (sband->band == NL80211_BAND_S1GHZ) { in rate_control_rate_init()
68 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
96 struct ieee80211_supported_band *sband; in rate_control_tx_status() local
101 sband = local->hw.wiphy->bands[st->info->band]; in rate_control_tx_status()
105 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status()
107 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status()
115 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument
135 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
[all …]
H A Dmesh.c68 struct ieee80211_supported_band *sband; in mesh_matches_local() local
90 sband = ieee80211_get_sband(sdata); in mesh_matches_local()
91 if (!sband) in mesh_matches_local()
94 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local()
427 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local
430 sband = ieee80211_get_sband(sdata); in mesh_add_ht_cap_ie()
431 if (!sband) in mesh_add_ht_cap_ie()
435 if (sband->band == NL80211_BAND_6GHZ) in mesh_add_ht_cap_ie()
438 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie()
448 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
[all …]
H A Dmain.c1241 struct ieee80211_supported_band *sband; in ieee80211_register_hw() local
1243 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
1244 if (!sband) in ieee80211_register_hw()
1252 for (i = 0; i < sband->n_channels; i++) in ieee80211_register_hw()
1253 if (!(sband->channels[i].flags & in ieee80211_register_hw()
1257 if (i == sband->n_channels) in ieee80211_register_hw()
1260 &sband->channels[i], in ieee80211_register_hw()
1270 channels += sband->n_channels; in ieee80211_register_hw()
1277 if (WARN_ON(sband->ht_cap.ht_supported && in ieee80211_register_hw()
1278 (sband->ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA) && in ieee80211_register_hw()
[all …]
H A Dutil.c211 struct ieee80211_supported_band *sband; in ieee80211_rts_duration() local
213 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
217 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration()
230 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
233 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration()
236 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
254 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local
256 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
260 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration()
272 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dregd.c135 struct ieee80211_supported_band *sband; in _rtl_reg_apply_beaconing_flags() local
145 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags()
147 for (i = 0; i < sband->n_channels; i++) { in _rtl_reg_apply_beaconing_flags()
148 ch = &sband->channels[i]; in _rtl_reg_apply_beaconing_flags()
186 struct ieee80211_supported_band *sband; in _rtl_reg_apply_active_scan_flags() local
192 sband = wiphy->bands[NL80211_BAND_2GHZ]; in _rtl_reg_apply_active_scan_flags()
199 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags()
202 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags()
215 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags()
223 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dcfp.c303 struct ieee80211_supported_band *sband; in mwifiex_get_cfp() local
311 sband = priv->wdev.wiphy->bands[NL80211_BAND_2GHZ]; in mwifiex_get_cfp()
313 sband = priv->wdev.wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_cfp()
315 if (!sband) { in mwifiex_get_cfp()
322 for (i = 0; i < sband->n_channels; i++) { in mwifiex_get_cfp()
323 ch = &sband->channels[i]; in mwifiex_get_cfp()
338 if (i == sband->n_channels) { in mwifiex_get_cfp()
384 struct ieee80211_supported_band *sband; in mwifiex_get_rates_from_cfg80211() local
388 sband = wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
389 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
[all …]
H A D11h.c32 struct ieee80211_supported_band *sband; in mwifiex_11h_process_infra_join() local
40 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_11h_process_infra_join()
58 ie_header->len = cpu_to_le16(2 * sband->n_channels + 2); in mwifiex_11h_process_infra_join()
61 *(*buffer)++ = 2 * sband->n_channels; in mwifiex_11h_process_infra_join()
62 for (i = 0; i < sband->n_channels; i++) { in mwifiex_11h_process_infra_join()
64 sband->channels[i].center_freq); in mwifiex_11h_process_infra_join()
H A D11n.c29 struct ieee80211_supported_band *sband = in mwifiex_fill_cap_info() local
32 if (WARN_ON_ONCE(!sband)) { in mwifiex_fill_cap_info()
38 (sband->ht_cap.ampdu_factor & in mwifiex_fill_cap_info()
40 ((sband->ht_cap.ampdu_density << in mwifiex_fill_cap_info()
44 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info()
45 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info()
48 (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in mwifiex_fill_cap_info()
57 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info()
309 struct ieee80211_supported_band *sband; in mwifiex_cmd_append_11n_tlv() local
317 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_cmd_append_11n_tlv()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c633 struct ieee80211_supported_band *sband; in brcms_reg_apply_radar_flags() local
637 sband = wiphy->bands[NL80211_BAND_5GHZ]; in brcms_reg_apply_radar_flags()
638 if (!sband) in brcms_reg_apply_radar_flags()
641 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_radar_flags()
642 ch = &sband->channels[i]; in brcms_reg_apply_radar_flags()
661 struct ieee80211_supported_band *sband; in brcms_reg_apply_beaconing_flags() local
667 sband = wiphy->bands[band]; in brcms_reg_apply_beaconing_flags()
668 if (!sband) in brcms_reg_apply_beaconing_flags()
671 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_beaconing_flags()
672 ch = &sband->channels[i]; in brcms_reg_apply_beaconing_flags()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dinit.c217 struct ieee80211_supported_band *sband) in mt76x0_init_txpower() argument
224 for (i = 0; i < sband->n_channels; i++) { in mt76x0_init_txpower()
225 chan = &sband->channels[i]; in mt76x0_init_txpower()
252 struct ieee80211_supported_band *sband; in mt76x0_register_device() local
254 sband = &dev->mphy.sband_5g.sband; in mt76x0_register_device()
255 sband->vht_cap.cap &= ~IEEE80211_VHT_CAP_RXLDPC; in mt76x0_register_device()
256 mt76x0_init_txpower(dev, sband); in mt76x0_register_device()
260 mt76x0_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt76x0_register_device()
/linux/net/wireless/
H A Dmesh.c143 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local
147 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
148 if (!sband) in __cfg80211_join_mesh()
151 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh()
152 chan = &sband->channels[i]; in __cfg80211_join_mesh()
178 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local
191 for (i = 0; i < sband->n_bitrates; i++) { in __cfg80211_join_mesh()
192 if (sband->bitrates[i].bitrate == 10) { in __cfg80211_join_mesh()
198 setup->basic_rates = ieee80211_mandatory_rates(sband); in __cfg80211_join_mesh()
H A Dof.c52 struct ieee80211_supported_band *sband = wiphy->bands[band]; in wiphy_freq_limits_apply() local
54 if (!sband) in wiphy_freq_limits_apply()
57 for (i = 0; i < sband->n_channels; i++) { in wiphy_freq_limits_apply()
58 struct ieee80211_channel *chan = &sband->channels[i]; in wiphy_freq_limits_apply()
H A Dutil.c28 ieee80211_get_response_rate(struct ieee80211_supported_band *sband, in ieee80211_get_response_rate() argument
31 struct ieee80211_rate *result = &sband->bitrates[0]; in ieee80211_get_response_rate()
34 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_get_response_rate()
37 if (sband->bitrates[i].bitrate > bitrate) in ieee80211_get_response_rate()
39 result = &sband->bitrates[i]; in ieee80211_get_response_rate()
46 u32 ieee80211_mandatory_rates(struct ieee80211_supported_band *sband) in ieee80211_mandatory_rates() argument
53 if (WARN_ON(!sband)) in ieee80211_mandatory_rates()
56 if (sband->band == NL80211_BAND_2GHZ) in ieee80211_mandatory_rates()
61 bitrates = sband->bitrates; in ieee80211_mandatory_rates()
62 for (i = 0; i < sband->n_bitrates; i++) in ieee80211_mandatory_rates()
[all …]
H A Dibss.c109 struct ieee80211_supported_band *sband; in __cfg80211_join_ibss() local
121 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss()
122 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss()
123 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss()
232 struct ieee80211_supported_band *sband; in cfg80211_ibss_wext_join() local
235 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join()
236 if (!sband) in cfg80211_ibss_wext_join()
239 for (i = 0; i < sband->n_channels; i++) { in cfg80211_ibss_wext_join()
240 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-parse.c860 struct ieee80211_supported_band *sband, in iwl_init_he_6ghz_capa() argument
870 if (sband->band != NL80211_BAND_6GHZ) in iwl_init_he_6ghz_capa()
899 iftype_data = (void *)(uintptr_t)sband->iftype_data; in iwl_init_he_6ghz_capa()
900 for (i = 0; i < sband->n_iftype_data; i++) in iwl_init_he_6ghz_capa()
907 struct ieee80211_supported_band *sband, in iwl_nvm_fixup_sband_iftd() argument
926 if (sband->band == NL80211_BAND_6GHZ && iftype_data->eht_cap.has_eht) in iwl_nvm_fixup_sband_iftd()
929 else if (sband->band != NL80211_BAND_2GHZ) in iwl_nvm_fixup_sband_iftd()
936 switch (sband->band) { in iwl_nvm_fixup_sband_iftd()
1105 struct ieee80211_supported_band *sband, in iwl_init_he_hw_capab() argument
1116 switch (sband->band) { in iwl_init_he_hw_capab()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dinit.c68 struct ieee80211_supported_band *sband; in mt7921_regd_channel_update() local
76 sband = wiphy->bands[NL80211_BAND_5GHZ]; in mt7921_regd_channel_update()
78 for (i = 0; i < sband->n_channels; i++) { in mt7921_regd_channel_update()
79 ch = &sband->channels[i]; in mt7921_regd_channel_update()
92 sband = wiphy->bands[NL80211_BAND_6GHZ]; in mt7921_regd_channel_update()
93 if (!sband) in mt7921_regd_channel_update()
97 for (i = 0; i < sband->n_channels; i++) { in mt7921_regd_channel_update()
98 ch = &sband->channels[i]; in mt7921_regd_channel_update()
316 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7921_register_device()
319 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7921_register_device()
[all …]
/linux/drivers/staging/rtl8723bs/os_dep/
H A Dwifi_regd.c62 struct ieee80211_supported_band *sband; in _rtw_reg_apply_flags() local
70 sband = wiphy->bands[i]; in _rtw_reg_apply_flags()
72 if (sband) { in _rtw_reg_apply_flags()
73 for (j = 0; j < sband->n_channels; j++) { in _rtw_reg_apply_flags()
74 ch = &sband->channels[j]; in _rtw_reg_apply_flags()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmac80211.c252 struct ieee80211_supported_band *sband, in mt76_init_stream_cap() argument
255 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt76_init_stream_cap()
271 vht_cap = &sband->vht_cap; in mt76_init_stream_cap()
296 mt76_init_stream_cap(phy, &phy->sband_2g.sband, false); in mt76_set_stream_caps()
298 mt76_init_stream_cap(phy, &phy->sband_5g.sband, vht); in mt76_set_stream_caps()
300 mt76_init_stream_cap(phy, &phy->sband_6g.sband, vht); in mt76_set_stream_caps()
310 struct ieee80211_supported_band *sband = &msband->sband; in mt76_init_sband() local
327 sband->channels = chanlist; in mt76_init_sband()
328 sband->n_channels = n_chan; in mt76_init_sband()
329 sband->bitrates = rates; in mt76_init_sband()
[all …]
/linux/drivers/net/wireless/intel/iwlegacy/
H A D3945-rs.c325 struct ieee80211_supported_band *sband; in il3945_rs_rate_init() local
334 sband = hw->wiphy->bands[conf->chandef.chan->band]; in il3945_rs_rate_init()
356 for (i = sband->n_bitrates - 1; i >= 0; i--) { in il3945_rs_rate_init()
357 if (sta->deflink.supp_rates[sband->band] & (1 << i)) { in il3945_rs_rate_init()
363 il->_3945.sta_supp_rates = sta->deflink.supp_rates[sband->band]; in il3945_rs_rate_init()
365 if (sband->band == NL80211_BAND_5GHZ) { in il3945_rs_rate_init()
426 il3945_rs_tx_status(void *il_rate, struct ieee80211_supported_band *sband, in il3945_rs_tx_status() argument
444 first_idx = sband->bitrates[info->status.rates[0].idx].hw_value; in il3945_rs_tx_status()
607 struct ieee80211_supported_band *sband = txrc->sband; in il3945_rs_get_rate() local
634 rate_mask = sta->deflink.supp_rates[sband->band]; in il3945_rs_get_rate()
[all …]
/linux/drivers/net/wireless/ath/
H A Dregd.c344 struct ieee80211_supported_band *sband; in ath_reg_apply_beaconing_flags() local
351 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags()
352 for (i = 0; i < sband->n_channels; i++) { in ath_reg_apply_beaconing_flags()
353 ch = &sband->channels[i]; in ath_reg_apply_beaconing_flags()
380 struct ieee80211_supported_band *sband; in ath_reg_apply_ir_flags() local
382 sband = wiphy->bands[NL80211_BAND_2GHZ]; in ath_reg_apply_ir_flags()
383 if (!sband) in ath_reg_apply_ir_flags()
407 struct ieee80211_supported_band *sband; in ath_reg_apply_radar_flags() local
414 sband = wiphy->bands[NL80211_BAND_5GHZ]; in ath_reg_apply_radar_flags()
416 for (i = 0; i < sband->n_channels; i++) { in ath_reg_apply_radar_flags()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dtestmode.c259 struct ieee80211_supported_band *sband; in mt7915_tm_set_tx_len() local
275 sband = &mphy->sband_5g.sband; in mt7915_tm_set_tx_len()
277 sband = &mphy->sband_6g.sband; in mt7915_tm_set_tx_len()
279 sband = &mphy->sband_2g.sband; in mt7915_tm_set_tx_len()
281 rate.legacy = sband->bitrates[rate.mcs].bitrate; in mt7915_tm_set_tx_len()
571 struct ieee80211_supported_band *sband; in mt7915_tm_set_tx_cont() local
575 sband = &phy->mt76->sband_5g.sband; in mt7915_tm_set_tx_cont()
577 sband = &phy->mt76->sband_6g.sband; in mt7915_tm_set_tx_cont()
579 sband = &phy->mt76->sband_2g.sband; in mt7915_tm_set_tx_cont()
583 rate_idx = sband->bitrates[idx].hw_value & 0xff; in mt7915_tm_set_tx_cont()
H A Dinit.c281 struct ieee80211_supported_band *sband) in __mt7915_init_txpower() argument
286 int pwr_delta = mt7915_eeprom_get_power_delta(dev, sband->band); in __mt7915_init_txpower()
289 for (i = 0; i < sband->n_channels; i++) { in __mt7915_init_txpower()
290 struct ieee80211_channel *chan = &sband->channels[i]; in __mt7915_init_txpower()
319 __mt7915_init_txpower(phy, &phy->mt76->sband_2g.sband); in mt7915_init_txpower()
321 __mt7915_init_txpower(phy, &phy->mt76->sband_5g.sband); in mt7915_init_txpower()
323 __mt7915_init_txpower(phy, &phy->mt76->sband_6g.sband); in mt7915_init_txpower()
408 phy->mt76->sband_2g.sband.ht_cap.cap |= in mt7915_init_wiphy()
412 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy()
415 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy()
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
H A Dregd.c346 struct ieee80211_supported_band *sband; in rtw89_regd_setup_unii4() local
354 sband = wiphy->bands[NL80211_BAND_5GHZ]; in rtw89_regd_setup_unii4()
355 if (!sband) in rtw89_regd_setup_unii4()
359 sband->n_channels -= RTW89_5GHZ_UNII4_CHANNEL_NUM; in rtw89_regd_setup_unii4()
521 struct ieee80211_supported_band *sband; in rtw89_regd_setup_6ghz() local
562 sband = wiphy->bands[NL80211_BAND_6GHZ]; in rtw89_regd_setup_6ghz()
563 if (!sband) in rtw89_regd_setup_6ghz()
567 kfree((__force void *)sband->iftype_data); in rtw89_regd_setup_6ghz()
568 kfree(sband); in rtw89_regd_setup_6ghz()
626 struct ieee80211_supported_band *sband; in rtw89_regd_apply_policy_unii4() local
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dinit.c273 struct ieee80211_supported_band *sband) in mt7615_init_txpower() argument
278 enum nl80211_band band = sband->band; in mt7615_init_txpower()
293 for (i = 0; i < sband->n_channels; i++) { in mt7615_init_txpower()
294 struct ieee80211_channel *chan = &sband->channels[i]; in mt7615_init_txpower()
343 mt7615_init_txpower(dev, &mphy->sband_2g.sband); in mt7615_regd_notifier()
344 mt7615_init_txpower(dev, &mphy->sband_5g.sband); in mt7615_regd_notifier()
414 phy->mt76->sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_init_wiphy()
415 phy->mt76->sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_init_wiphy()
416 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7615_init_wiphy()
423 dev->mphy.sband_5g.sband.vht_cap.cap &= in mt7615_cap_dbdc_enable()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dinit.c270 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7925_register_device()
273 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device()
275 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7925_register_device()
278 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device()
280 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7925_register_device()
286 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7925_register_device()

123456