Home
last modified time | relevance | path

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

123456

/linux-6.6.21/net/mac80211/
Drate.c37 struct ieee80211_supported_band *sband; in rate_control_rate_init() local
53 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
56 if (sband->band == NL80211_BAND_S1GHZ) { in rate_control_rate_init()
63 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
76 struct ieee80211_supported_band *sband; in rate_control_tx_status() local
81 sband = local->hw.wiphy->bands[st->info->band]; in rate_control_tx_status()
85 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status()
87 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status()
95 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument
116 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
[all …]
Dmesh.c66 struct ieee80211_supported_band *sband; in mesh_matches_local() local
88 sband = ieee80211_get_sband(sdata); in mesh_matches_local()
89 if (!sband) in mesh_matches_local()
92 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local()
422 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local
425 sband = ieee80211_get_sband(sdata); in mesh_add_ht_cap_ie()
426 if (!sband) in mesh_add_ht_cap_ie()
430 if (sband->band == NL80211_BAND_6GHZ) in mesh_add_ht_cap_ie()
433 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie()
443 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
[all …]
Dmain.c1055 struct ieee80211_supported_band *sband; in ieee80211_register_hw() local
1057 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
1058 if (!sband) in ieee80211_register_hw()
1066 for (i = 0; i < sband->n_channels; i++) in ieee80211_register_hw()
1067 if (!(sband->channels[i].flags & in ieee80211_register_hw()
1071 if (i == sband->n_channels) in ieee80211_register_hw()
1074 &sband->channels[i], in ieee80211_register_hw()
1084 channels += sband->n_channels; in ieee80211_register_hw()
1091 if (WARN_ON(sband->ht_cap.ht_supported && in ieee80211_register_hw()
1092 (sband->ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA) && in ieee80211_register_hw()
[all …]
Drc80211_minstrel_ht.c1282 minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_tx_status() argument
1653 struct ieee80211_supported_band *sband, in minstrel_ht_update_cck() argument
1658 if (sband->band != NL80211_BAND_2GHZ) in minstrel_ht_update_cck()
1667 !rate_supported(sta, sband->band, mp->cck_rates[i])) in minstrel_ht_update_cck()
1671 if (sband->bitrates[i].flags & IEEE80211_RATE_SHORT_PREAMBLE) in minstrel_ht_update_cck()
1678 struct ieee80211_supported_band *sband, in minstrel_ht_update_ofdm() argument
1687 rates = mp->ofdm_rates[sband->band]; in minstrel_ht_update_ofdm()
1690 !rate_supported(sta, sband->band, rates[i])) in minstrel_ht_update_ofdm()
1698 minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_update_caps() argument
1725 mi->band = sband->band; in minstrel_ht_update_caps()
[all …]
Dibss.c50 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()
[all …]
Dmesh_plink.c96 struct ieee80211_supported_band *sband; in mesh_set_short_slot_time() local
103 sband = ieee80211_get_sband(sdata); in mesh_set_short_slot_time()
104 if (!sband) in mesh_set_short_slot_time()
107 if (sband->band == NL80211_BAND_5GHZ) { in mesh_set_short_slot_time()
111 } else if (sband->band != NL80211_BAND_2GHZ) { in mesh_set_short_slot_time()
115 for (i = 0; i < sband->n_bitrates; i++) in mesh_set_short_slot_time()
116 if (sband->bitrates[i].flags & IEEE80211_RATE_ERP_G) in mesh_set_short_slot_time()
129 if (erp_rates & sta->sta.deflink.supp_rates[sband->band]) in mesh_set_short_slot_time()
266 struct ieee80211_supported_band *sband; in mesh_plink_frame_tx() local
269 sband = ieee80211_get_sband(sdata); in mesh_plink_frame_tx()
[all …]
Dutil.c216 struct ieee80211_supported_band *sband; in ieee80211_rts_duration() local
218 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
222 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration()
236 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
239 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration()
242 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
260 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local
262 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
266 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration()
279 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration()
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/
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-6.6.21/drivers/net/wireless/marvell/mwifiex/
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 …]
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()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt76x0/
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-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
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-6.6.21/net/wireless/
Dmesh.c140 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local
144 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
145 if (!sband) in __cfg80211_join_mesh()
148 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh()
149 chan = &sband->channels[i]; in __cfg80211_join_mesh()
176 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local
189 for (i = 0; i < sband->n_bitrates; i++) { in __cfg80211_join_mesh()
190 if (sband->bitrates[i].bitrate == 10) { in __cfg80211_join_mesh()
197 setup->basic_rates = ieee80211_mandatory_rates(sband, in __cfg80211_join_mesh()
Ddebugfs.c70 struct ieee80211_supported_band *sband; in ht40allow_map_read() local
78 sband = wiphy->bands[band]; in ht40allow_map_read()
79 if (!sband) in ht40allow_map_read()
81 for (i = 0; i < sband->n_channels; i++) in ht40allow_map_read()
82 offset += ht_print_chan(&sband->channels[i], in ht40allow_map_read()
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()
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
54 if (WARN_ON(!sband)) in ieee80211_mandatory_rates()
57 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_mandatory_rates()
67 bitrates = sband->bitrates; in ieee80211_mandatory_rates()
68 for (i = 0; i < sband->n_bitrates; i++) in ieee80211_mandatory_rates()
[all …]
/linux-6.6.21/drivers/staging/rtl8723bs/os_dep/
Dwifi_regd.c63 struct ieee80211_supported_band *sband; in _rtw_reg_apply_flags() local
71 sband = wiphy->bands[i]; in _rtw_reg_apply_flags()
73 if (sband) { in _rtw_reg_apply_flags()
74 for (j = 0; j < sband->n_channels; j++) { in _rtw_reg_apply_flags()
75 ch = &sband->channels[j]; in _rtw_reg_apply_flags()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dmac80211.c241 struct ieee80211_supported_band *sband, in mt76_init_stream_cap() argument
244 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt76_init_stream_cap()
260 vht_cap = &sband->vht_cap; in mt76_init_stream_cap()
285 mt76_init_stream_cap(phy, &phy->sband_2g.sband, false); in mt76_set_stream_caps()
287 mt76_init_stream_cap(phy, &phy->sband_5g.sband, vht); in mt76_set_stream_caps()
289 mt76_init_stream_cap(phy, &phy->sband_6g.sband, vht); in mt76_set_stream_caps()
299 struct ieee80211_supported_band *sband = &msband->sband; in mt76_init_sband() local
316 sband->channels = chanlist; in mt76_init_sband()
317 sband->n_channels = n_chan; in mt76_init_sband()
318 sband->bitrates = rates; in mt76_init_sband()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c837 struct ieee80211_supported_band *sband, in iwl_init_he_6ghz_capa() argument
847 if (sband->band != NL80211_BAND_6GHZ) in iwl_init_he_6ghz_capa()
876 iftype_data = (void *)(uintptr_t)sband->iftype_data; in iwl_init_he_6ghz_capa()
877 for (i = 0; i < sband->n_iftype_data; i++) in iwl_init_he_6ghz_capa()
884 struct ieee80211_supported_band *sband, in iwl_nvm_fixup_sband_iftd() argument
901 if (sband->band == NL80211_BAND_6GHZ && iftype_data->eht_cap.has_eht) in iwl_nvm_fixup_sband_iftd()
904 else if (sband->band != NL80211_BAND_2GHZ) in iwl_nvm_fixup_sband_iftd()
911 switch (sband->band) { in iwl_nvm_fixup_sband_iftd()
1046 struct ieee80211_supported_band *sband, in iwl_init_he_hw_capab() argument
1054 if (WARN_ON(sband->iftype_data)) in iwl_init_he_hw_capab()
[all …]
Diwl-eeprom-parse.c654 struct ieee80211_supported_band *sband, in iwl_init_sband_channels() argument
663 sband->channels = &data->channels[idx]; in iwl_init_sband_channels()
670 sband->n_channels = n; in iwl_init_sband_channels()
764 struct ieee80211_supported_band *sband; in iwl_init_sbands() local
766 sband = &data->bands[NL80211_BAND_2GHZ]; in iwl_init_sbands()
767 sband->band = NL80211_BAND_2GHZ; in iwl_init_sbands()
768 sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; in iwl_init_sbands()
769 sband->n_bitrates = N_RATES_24; in iwl_init_sbands()
770 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands()
772 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, in iwl_init_sbands()
[all …]
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7996/
Dinit.c105 struct ieee80211_supported_band *sband) in mt7996_init_txpower() argument
109 int pwr_delta = mt7996_eeprom_get_power_delta(dev, sband->band); in mt7996_init_txpower()
112 for (i = 0; i < sband->n_channels; i++) { in mt7996_init_txpower()
113 struct ieee80211_channel *chan = &sband->channels[i]; in mt7996_init_txpower()
142 mt7996_init_txpower(dev, &phy->mt76->sband_2g.sband); in mt7996_regd_notifier()
143 mt7996_init_txpower(dev, &phy->mt76->sband_5g.sband); in mt7996_regd_notifier()
144 mt7996_init_txpower(dev, &phy->mt76->sband_6g.sband); in mt7996_regd_notifier()
203 phy->mt76->sband_2g.sband.ht_cap.cap |= in mt7996_init_wiphy()
206 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7996_init_wiphy()
211 phy->mt76->sband_5g.sband.ht_cap.cap |= in mt7996_init_wiphy()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/
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-6.6.21/drivers/staging/vt6655/
Ddpc.c27 struct ieee80211_supported_band *sband; in vnt_rx_data() local
52 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
61 for (ii = 0; ii < sband->n_bitrates; ii++) { in vnt_rx_data()
62 if (sband->bitrates[ii].hw_value == r) { in vnt_rx_data()
68 if (ii == sband->n_bitrates) { in vnt_rx_data()
/linux-6.6.21/drivers/net/wireless/ath/
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-6.6.21/drivers/net/wireless/mediatek/mt76/mt7915/
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()
569 struct ieee80211_supported_band *sband; in mt7915_tm_set_tx_cont() local
573 sband = &phy->mt76->sband_5g.sband; in mt7915_tm_set_tx_cont()
575 sband = &phy->mt76->sband_6g.sband; in mt7915_tm_set_tx_cont()
577 sband = &phy->mt76->sband_2g.sband; in mt7915_tm_set_tx_cont()
581 rate_idx = sband->bitrates[idx].hw_value & 0xff; in mt7915_tm_set_tx_cont()

123456