Home
last modified time | relevance | path

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

12345

/Linux-v5.4/net/mac80211/
Drate.c36 struct ieee80211_supported_band *sband; in rate_control_rate_init() local
52 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
55 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
63 struct ieee80211_supported_band *sband, in rate_control_tx_status() argument
75 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status()
77 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status()
85 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument
103 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
269 struct ieee80211_supported_band *sband; in ieee80211_check_rate_mask() local
281 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask()
[all …]
Dmesh.c65 struct ieee80211_supported_band *sband; in mesh_matches_local() local
86 sband = ieee80211_get_sband(sdata); in mesh_matches_local()
87 if (!sband) in mesh_matches_local()
90 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local()
411 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local
414 sband = ieee80211_get_sband(sdata); in mesh_add_ht_cap_ie()
415 if (!sband) in mesh_add_ht_cap_ie()
418 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie()
428 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
439 struct ieee80211_supported_band *sband; in mesh_add_ht_oper_ie() local
[all …]
Drc80211_minstrel.c260 minstrel_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_tx_status() argument
475 minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband, in minstrel_rate_init() argument
487 mi->lowest_rix = rate_lowest_index(sband, sta); in minstrel_rate_init()
488 ctl_rate = &sband->bitrates[mi->lowest_rix]; in minstrel_rate_init()
489 mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, in minstrel_rate_init()
498 for (i = 0; i < sband->n_bitrates; i++) { in minstrel_rate_init()
506 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
508 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in minstrel_rate_init()
517 mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in minstrel_rate_init()
519 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init()
[all …]
Dmesh_plink.c96 struct ieee80211_supported_band *sband; in mesh_set_short_slot_time() local
102 sband = ieee80211_get_sband(sdata); in mesh_set_short_slot_time()
103 if (!sband) in mesh_set_short_slot_time()
106 if (sband->band == NL80211_BAND_5GHZ) { in mesh_set_short_slot_time()
110 } else if (sband->band != NL80211_BAND_2GHZ) { in mesh_set_short_slot_time()
114 for (i = 0; i < sband->n_bitrates; i++) in mesh_set_short_slot_time()
115 if (sband->bitrates[i].flags & IEEE80211_RATE_ERP_G) in mesh_set_short_slot_time()
128 if (erp_rates & sta->sta.supp_rates[sband->band]) in mesh_set_short_slot_time()
257 struct ieee80211_supported_band *sband; in mesh_plink_frame_tx() local
260 sband = ieee80211_get_sband(sdata); in mesh_plink_frame_tx()
[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 …]
Dmain.c950 struct ieee80211_supported_band *sband; in ieee80211_register_hw() local
952 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
953 if (!sband) in ieee80211_register_hw()
958 &sband->channels[0], in ieee80211_register_hw()
968 channels += sband->n_channels; in ieee80211_register_hw()
970 if (max_bitrates < sband->n_bitrates) in ieee80211_register_hw()
971 max_bitrates = sband->n_bitrates; in ieee80211_register_hw()
972 supp_ht = supp_ht || sband->ht_cap.ht_supported; in ieee80211_register_hw()
973 supp_vht = supp_vht || sband->vht_cap.vht_supported; in ieee80211_register_hw()
976 supp_he = !!ieee80211_get_he_sta_cap(sband); in ieee80211_register_hw()
[all …]
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/
Dmac80211.c112 struct ieee80211_supported_band *sband, in mt76_init_stream_cap() argument
115 struct ieee80211_sta_ht_cap *ht_cap = &sband->ht_cap; in mt76_init_stream_cap()
131 vht_cap = &sband->vht_cap; in mt76_init_stream_cap()
151 mt76_init_stream_cap(dev, &dev->sband_2g.sband, false); in mt76_set_stream_caps()
153 mt76_init_stream_cap(dev, &dev->sband_5g.sband, vht); in mt76_set_stream_caps()
162 struct ieee80211_supported_band *sband = &msband->sband; in mt76_init_sband() local
178 sband->channels = chanlist; in mt76_init_sband()
179 sband->n_channels = n_chan; in mt76_init_sband()
180 sband->bitrates = rates; in mt76_init_sband()
181 sband->n_bitrates = n_rates; in mt76_init_sband()
[all …]
/Linux-v5.4/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-v5.4/drivers/net/wireless/marvell/mwifiex/
Dcfp.c315 struct ieee80211_supported_band *sband; in mwifiex_get_cfp() local
323 sband = priv->wdev.wiphy->bands[NL80211_BAND_2GHZ]; in mwifiex_get_cfp()
325 sband = priv->wdev.wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_cfp()
327 if (!sband) { in mwifiex_get_cfp()
334 for (i = 0; i < sband->n_channels; i++) { in mwifiex_get_cfp()
335 ch = &sband->channels[i]; in mwifiex_get_cfp()
350 if (i == sband->n_channels) { in mwifiex_get_cfp()
396 struct ieee80211_supported_band *sband; in mwifiex_get_rates_from_cfg80211() local
400 sband = wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
401 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
[all …]
/Linux-v5.4/net/wireless/
Dmesh.c135 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local
139 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
140 if (!sband) in __cfg80211_join_mesh()
143 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh()
144 chan = &sband->channels[i]; in __cfg80211_join_mesh()
171 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local
184 for (i = 0; i < sband->n_bitrates; i++) { in __cfg80211_join_mesh()
185 if (sband->bitrates[i].bitrate == 10) { in __cfg80211_join_mesh()
192 setup->basic_rates = ieee80211_mandatory_rates(sband, in __cfg80211_join_mesh()
Ddebugfs.c70 struct ieee80211_supported_band *sband; in ht40allow_map_read() local
79 sband = wiphy->bands[band]; in ht40allow_map_read()
80 if (!sband) in ht40allow_map_read()
82 for (i = 0; i < sband->n_channels; i++) in ht40allow_map_read()
83 offset += ht_print_chan(&sband->channels[i], in ht40allow_map_read()
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 …]
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()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Drs-fw.c121 struct ieee80211_supported_band *sband) in rs_fw_get_config_flags() argument
151 if (sband->iftype_data && sband->iftype_data->he_cap.has_he && in rs_fw_get_config_flags()
152 !(sband->iftype_data->he_cap.he_cap_elem.phy_cap_info[1] & in rs_fw_get_config_flags()
233 struct ieee80211_supported_band *sband, in rs_fw_he_set_enabled_rates() argument
240 le16_to_cpu(sband->iftype_data->he_cap.he_mcs_nss_supp.tx_mcs_80); in rs_fw_he_set_enabled_rates()
242 le16_to_cpu(sband->iftype_data->he_cap.he_mcs_nss_supp.tx_mcs_160); in rs_fw_he_set_enabled_rates()
276 struct ieee80211_supported_band *sband, in rs_fw_set_supp_rates() argument
288 tmp = sta->supp_rates[sband->band]; in rs_fw_set_supp_rates()
290 supp |= BIT(sband->bitrates[i].hw_value); in rs_fw_set_supp_rates()
298 rs_fw_he_set_enabled_rates(sta, sband, cmd); in rs_fw_set_supp_rates()
[all …]
Dphy-ctxt.c292 struct ieee80211_supported_band *sband = NULL; in iwl_mvm_phy_ctxt_unref() local
295 while (!sband && band < NUM_NL80211_BANDS) in iwl_mvm_phy_ctxt_unref()
296 sband = mvm->hw->wiphy->bands[band++]; in iwl_mvm_phy_ctxt_unref()
298 if (WARN_ON(!sband)) in iwl_mvm_phy_ctxt_unref()
301 chan = &sband->channels[0]; in iwl_mvm_phy_ctxt_unref()
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c635 struct ieee80211_supported_band *sband; in brcms_reg_apply_radar_flags() local
639 sband = wiphy->bands[NL80211_BAND_5GHZ]; in brcms_reg_apply_radar_flags()
640 if (!sband) in brcms_reg_apply_radar_flags()
643 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_radar_flags()
644 ch = &sband->channels[i]; in brcms_reg_apply_radar_flags()
663 struct ieee80211_supported_band *sband; in brcms_reg_apply_beaconing_flags() local
669 sband = wiphy->bands[band]; in brcms_reg_apply_beaconing_flags()
670 if (!sband) in brcms_reg_apply_beaconing_flags()
673 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_beaconing_flags()
674 ch = &sband->channels[i]; in brcms_reg_apply_beaconing_flags()
[all …]
/Linux-v5.4/drivers/staging/rtl8723bs/os_dep/
Dwifi_regd.c67 struct ieee80211_supported_band *sband; in _rtw_reg_apply_flags() local
75 sband = wiphy->bands[i]; in _rtw_reg_apply_flags()
77 if (sband) { in _rtw_reg_apply_flags()
78 for (j = 0; j < sband->n_channels; j++) { in _rtw_reg_apply_flags()
79 ch = &sband->channels[j]; in _rtw_reg_apply_flags()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c15 static void mt76x0_vht_cap_mask(struct ieee80211_supported_band *sband) in mt76x0_vht_cap_mask() argument
17 struct ieee80211_sta_vht_cap *vht_cap = &sband->vht_cap; in mt76x0_vht_cap_mask()
261 struct ieee80211_supported_band *sband) in mt76x0_init_txpower() argument
268 for (i = 0; i < sband->n_channels; i++) { in mt76x0_init_txpower()
269 chan = &sband->channels[i]; in mt76x0_init_txpower()
294 mt76x0_vht_cap_mask(&dev->mt76.sband_5g.sband); in mt76x0_register_device()
295 mt76x0_init_txpower(dev, &dev->mt76.sband_5g.sband); in mt76x0_register_device()
299 mt76x0_init_txpower(dev, &dev->mt76.sband_2g.sband); in mt76x0_register_device()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/
Dinit.c182 struct ieee80211_supported_band *sband) in mt7615_init_txpower() argument
186 enum nl80211_band band = sband->band; in mt7615_init_txpower()
189 for (i = 0; i < sband->n_channels; i++) { in mt7615_init_txpower()
190 struct ieee80211_channel *chan = &sband->channels[i]; in mt7615_init_txpower()
274 dev->mt76.sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_register_device()
275 dev->mt76.sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_register_device()
276 dev->mt76.sband_5g.sband.vht_cap.cap |= in mt7615_register_device()
296 mt7615_init_txpower(dev, &dev->mt76.sband_2g.sband); in mt7615_register_device()
297 mt7615_init_txpower(dev, &dev->mt76.sband_5g.sband); in mt7615_register_device()
/Linux-v5.4/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->supp_rates[sband->band] & (1 << i)) { in il3945_rs_rate_init()
363 il->_3945.sta_supp_rates = sta->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->supp_rates[sband->band]; in il3945_rs_get_rate()
[all …]
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dregd.c266 struct ieee80211_supported_band *sband; in rtw_regd_apply_beaconing_flags() local
275 sband = wiphy->bands[band]; in rtw_regd_apply_beaconing_flags()
276 for (i = 0; i < sband->n_channels; i++) { in rtw_regd_apply_beaconing_flags()
277 ch = &sband->channels[i]; in rtw_regd_apply_beaconing_flags()
295 struct ieee80211_supported_band *sband; in rtw_regd_apply_hw_cap_flags() local
304 sband = wiphy->bands[NL80211_BAND_2GHZ]; in rtw_regd_apply_hw_cap_flags()
305 if (!sband) in rtw_regd_apply_hw_cap_flags()
308 for (i = 0; i < sband->n_channels; i++) { in rtw_regd_apply_hw_cap_flags()
309 ch = &sband->channels[i]; in rtw_regd_apply_hw_cap_flags()
314 sband = wiphy->bands[NL80211_BAND_5GHZ]; in rtw_regd_apply_hw_cap_flags()
[all …]
/Linux-v5.4/drivers/staging/vt6655/
Ddpc.c29 struct ieee80211_supported_band *sband; in vnt_rx_data() local
54 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
63 for (ii = 0; ii < sband->n_bitrates; ii++) { in vnt_rx_data()
64 if (sband->bitrates[ii].hw_value == r) { in vnt_rx_data()
70 if (ii == sband->n_bitrates) { in vnt_rx_data()
/Linux-v5.4/drivers/staging/vt6656/
Ddpc.c30 struct ieee80211_supported_band *sband; in vnt_rx_data() local
86 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
95 for (ii = 0; ii < sband->n_bitrates; ii++) { in vnt_rx_data()
96 if (sband->bitrates[ii].hw_value == r) { in vnt_rx_data()
102 if (ii == sband->n_bitrates) { in vnt_rx_data()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-parse.c707 struct ieee80211_supported_band *sband, in iwl_init_sband_channels() argument
716 sband->channels = &data->channels[idx]; in iwl_init_sband_channels()
723 sband->n_channels = n; in iwl_init_sband_channels()
817 struct ieee80211_supported_band *sband; in iwl_init_sbands() local
819 sband = &data->bands[NL80211_BAND_2GHZ]; in iwl_init_sbands()
820 sband->band = NL80211_BAND_2GHZ; in iwl_init_sbands()
821 sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; in iwl_init_sbands()
822 sband->n_bitrates = N_RATES_24; in iwl_init_sbands()
823 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands()
825 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, in iwl_init_sbands()
[all …]
/Linux-v5.4/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()
379 struct ieee80211_supported_band *sband; in ath_reg_apply_ir_flags() local
381 sband = wiphy->bands[NL80211_BAND_2GHZ]; in ath_reg_apply_ir_flags()
382 if (!sband) in ath_reg_apply_ir_flags()
406 struct ieee80211_supported_band *sband; in ath_reg_apply_radar_flags() local
413 sband = wiphy->bands[NL80211_BAND_5GHZ]; in ath_reg_apply_radar_flags()
415 for (i = 0; i < sband->n_channels; i++) { in ath_reg_apply_radar_flags()
[all …]

12345