Home
last modified time | relevance | path

Searched refs:chandef (Results 1 – 25 of 193) sorted by relevance

12345678

/Linux-v5.4/net/wireless/
Dchan.c22 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef, in cfg80211_chandef_create() argument
29 chandef->chan = chan; in cfg80211_chandef_create()
30 chandef->center_freq2 = 0; in cfg80211_chandef_create()
31 chandef->edmg.bw_config = 0; in cfg80211_chandef_create()
32 chandef->edmg.channels = 0; in cfg80211_chandef_create()
36 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in cfg80211_chandef_create()
37 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
40 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create()
41 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
44 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
[all …]
Dmesh.c125 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
127 setup->chandef = wdev->preset_chandef; in __cfg80211_join_mesh()
130 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
149 setup->chandef.chan = chan; in __cfg80211_join_mesh()
153 if (setup->chandef.chan) in __cfg80211_join_mesh()
158 if (!setup->chandef.chan) in __cfg80211_join_mesh()
161 setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT; in __cfg80211_join_mesh()
162 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh()
172 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh()
174 if (setup->chandef.chan->band == NL80211_BAND_2GHZ) { in __cfg80211_join_mesh()
[all …]
Docb.c32 if (WARN_ON(!setup->chandef.chan)) in __cfg80211_join_ocb()
37 wdev->chandef = setup->chandef; in __cfg80211_join_ocb()
72 memset(&wdev->chandef, 0, sizeof(wdev->chandef)); in __cfg80211_leave_ocb()
Dibss.c112 band = params->chandef.chan->band; in __cfg80211_join_ibss()
135 wdev->chandef = params->chandef; in __cfg80211_join_ibss()
142 wdev->wext.ibss.chandef = params->chandef; in __cfg80211_join_ibss()
184 memset(&wdev->chandef, 0, sizeof(wdev->chandef)); in __cfg80211_clear_ibss()
250 if (!wdev->wext.ibss.chandef.chan) { in cfg80211_ibss_wext_join()
278 cfg80211_chandef_create(&wdev->wext.ibss.chandef, new_chan, in cfg80211_ibss_wext_join()
338 if (wdev->wext.ibss.chandef.chan == chan) in cfg80211_ibss_wext_siwfreq()
351 cfg80211_chandef_create(&wdev->wext.ibss.chandef, chan, in cfg80211_ibss_wext_siwfreq()
380 else if (wdev->wext.ibss.chandef.chan) in cfg80211_ibss_wext_giwfreq()
381 chan = wdev->wext.ibss.chandef.chan; in cfg80211_ibss_wext_giwfreq()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dphy-ctxt.c69 u8 iwl_mvm_get_channel_width(struct cfg80211_chan_def *chandef) in iwl_mvm_get_channel_width() argument
71 switch (chandef->width) { in iwl_mvm_get_channel_width()
82 WARN(1, "Invalid channel width=%u", chandef->width); in iwl_mvm_get_channel_width()
91 u8 iwl_mvm_get_ctrl_pos(struct cfg80211_chan_def *chandef) in iwl_mvm_get_ctrl_pos() argument
93 switch (chandef->chan->center_freq - chandef->center_freq1) { in iwl_mvm_get_ctrl_pos()
143 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data() argument
151 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data()
190 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_apply() argument
202 iwl_mvm_phy_ctxt_cmd_data(mvm, &cmd, chandef, in iwl_mvm_phy_ctxt_apply()
215 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_add() argument
[all …]
Dtdls.c382 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_config_channel_switch() argument
424 if (!chandef) { in iwl_mvm_tdls_config_channel_switch()
426 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch()
428 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch()
440 chandef = &chanctx->def; in iwl_mvm_tdls_config_channel_switch()
444 if (chandef) in iwl_mvm_tdls_config_channel_switch()
445 iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, chandef); in iwl_mvm_tdls_config_channel_switch()
535 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work()
553 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_channel_switch() argument
564 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch()
[all …]
Dftm-responder.c68 struct cfg80211_chan_def *chandef) in iwl_mvm_ftm_responder_cmd() argument
72 .channel_num = chandef->chan->hw_value, in iwl_mvm_ftm_responder_cmd()
82 switch (chandef->width) { in iwl_mvm_ftm_responder_cmd()
91 cmd.ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_cmd()
95 cmd.ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_cmd()
/Linux-v5.4/net/mac80211/
Dibss.c41 struct cfg80211_chan_def *chandef, in ieee80211_ibss_build_presp() argument
93 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
94 rate_flags = ieee80211_chandef_rate_flags(chandef); in ieee80211_ibss_build_presp()
95 shift = ieee80211_chandef_get_shift(chandef); in ieee80211_ibss_build_presp()
133 chandef->chan->center_freq); in ieee80211_ibss_build_presp()
147 csa_settings->chandef.chan->center_freq); in ieee80211_ibss_build_presp()
176 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT && in ieee80211_ibss_build_presp()
177 chandef->width != NL80211_CHAN_WIDTH_5 && in ieee80211_ibss_build_presp()
178 chandef->width != NL80211_CHAN_WIDTH_10 && in ieee80211_ibss_build_presp()
192 chandef, 0, false); in ieee80211_ibss_build_presp()
[all …]
Dchan.c119 compat = &sdata->vif.bss_conf.chandef; in ieee80211_chanctx_non_reserved_chandef()
122 &sdata->vif.bss_conf.chandef, compat); in ieee80211_chanctx_non_reserved_chandef()
167 const struct cfg80211_chan_def *chandef, in ieee80211_find_reservation_chanctx() argument
185 chandef)) in ieee80211_find_reservation_chanctx()
271 width = max(vif->bss_conf.chandef.width, in ieee80211_get_chanctx_max_required_bw()
281 width = vif->bss_conf.chandef.width; in ieee80211_get_chanctx_max_required_bw()
343 const struct cfg80211_chan_def *chandef) in ieee80211_change_chanctx() argument
345 if (cfg80211_chandef_identical(&ctx->conf.def, chandef)) { in ieee80211_change_chanctx()
350 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
352 ctx->conf.def = *chandef; in ieee80211_change_chanctx()
[all …]
Dmesh.c96 cfg80211_chandef_create(&sta_chan_def, sdata->vif.bss_conf.chandef.chan, in mesh_matches_local()
103 if (!cfg80211_chandef_compatible(&sdata->vif.bss_conf.chandef, in mesh_matches_local()
419 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || in mesh_add_ht_cap_ie()
420 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || in mesh_add_ht_cap_ie()
421 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) in mesh_add_ht_cap_ie()
456 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || in mesh_add_ht_oper_ie()
457 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || in mesh_add_ht_oper_ie()
458 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) in mesh_add_ht_oper_ie()
465 ieee80211_ie_build_ht_oper(pos, ht_cap, &sdata->vif.bss_conf.chandef, in mesh_add_ht_oper_ie()
483 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || in mesh_add_vht_cap_ie()
[all …]
Dspectmgmt.c107 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
111 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
115 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
119 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
122 switch (sdata->vif.bss_conf.chandef.width) { in ieee80211_parse_ch_switch_ie()
125 csa_ie->chandef.width = in ieee80211_parse_ch_switch_ie()
126 sdata->vif.bss_conf.chandef.width; in ieee80211_parse_ch_switch_ie()
149 new_vht_chandef = csa_ie->chandef; in ieee80211_parse_ch_switch_ie()
168 &csa_ie->chandef)) { in ieee80211_parse_ch_switch_ie()
174 csa_ie->chandef = new_vht_chandef; in ieee80211_parse_ch_switch_ie()
Dutil.c1632 struct cfg80211_chan_def *chandef, in ieee80211_build_preq_ies_band() argument
1653 rate_flags = ieee80211_chandef_rate_flags(chandef); in ieee80211_build_preq_ies_band()
1654 shift = ieee80211_chandef_get_shift(chandef); in ieee80211_build_preq_ies_band()
1705 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) { in ieee80211_build_preq_ies_band()
1711 chandef->chan->center_freq); in ieee80211_build_preq_ies_band()
1831 struct cfg80211_chan_def *chandef, in ieee80211_build_preq_ies() argument
1846 chandef, in ieee80211_build_preq_ies()
1879 struct cfg80211_chan_def chandef; in ieee80211_build_probe_req() local
1891 chandef.width = sdata->vif.bss_conf.chandef.width; in ieee80211_build_probe_req()
1893 chandef.chan = NULL; in ieee80211_build_probe_req()
[all …]
Dtdls.c77 struct cfg80211_chan_def chandef; in ieee80211_tdls_add_subband() local
88 cfg80211_chandef_create(&chandef, ch, in ieee80211_tdls_add_subband()
90 if (cfg80211_reg_can_beacon_relax(wiphy, &chandef, in ieee80211_tdls_add_subband()
161 if (!ieee80211_chandef_to_operating_class(&sdata->vif.bss_conf.chandef, in ieee80211_tdls_add_oper_classes()
439 sta->tdls_chandef = sdata->vif.bss_conf.chandef; in ieee80211_tdls_add_setup_start_ies()
568 sta->tdls_chandef = sdata->vif.bss_conf.chandef; in ieee80211_tdls_add_setup_cfm_ies()
614 &sdata->vif.bss_conf.chandef, prot, in ieee80211_tdls_add_setup_cfm_ies()
649 struct cfg80211_chan_def *chandef) in ieee80211_tdls_add_chan_switch_req_ies() argument
654 if (WARN_ON_ONCE(!chandef)) in ieee80211_tdls_add_chan_switch_req_ies()
659 ieee80211_frequency_to_channel(chandef->chan->center_freq); in ieee80211_tdls_add_chan_switch_req_ies()
[all …]
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/
Devent.c150 struct cfg80211_chan_def chandef; in qtnf_event_handle_bss_join() local
180 qlink_chandef_q2cfg(wiphy, &join_info->chan, &chandef); in qtnf_event_handle_bss_join()
181 if (!cfg80211_chandef_valid(&chandef)) { in qtnf_event_handle_bss_join()
184 chandef.chan->center_freq, in qtnf_event_handle_bss_join()
185 chandef.center_freq1, in qtnf_event_handle_bss_join()
186 chandef.center_freq2, in qtnf_event_handle_bss_join()
187 chandef.width); in qtnf_event_handle_bss_join()
192 bss = cfg80211_get_bss(wiphy, chandef.chan, join_info->bssid, in qtnf_event_handle_bss_join()
198 join_info->bssid, chandef.chan->hw_value); in qtnf_event_handle_bss_join()
221 bss = cfg80211_inform_bss(wiphy, chandef.chan, in qtnf_event_handle_bss_join()
[all …]
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x2/
Dusb_phy.c13 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x2u_phy_channel_calibrate()
61 struct cfg80211_chan_def *chandef) in mt76x2u_phy_set_channel() argument
86 struct ieee80211_channel *chan = chandef->chan; in mt76x2u_phy_set_channel()
91 freq = chandef->chan->center_freq; in mt76x2u_phy_set_channel()
92 freq1 = chandef->center_freq1; in mt76x2u_phy_set_channel()
94 switch (chandef->width) { in mt76x2u_phy_set_channel()
127 mt76x02_phy_set_bw(dev, chandef->width, ch_group_index); in mt76x2u_phy_set_channel()
188 chan = dev->mt76.chandef.chan; in mt76x2u_phy_set_channel()
Dphy.c139 enum nl80211_chan_width width = dev->mt76.chandef.width; in mt76x2_phy_set_txpower()
140 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x2_phy_set_txpower()
205 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x2_phy_tssi_compensate()
255 dev->mt76.chandef.width >= NL80211_CHAN_WIDTH_40) in mt76x2_phy_set_gain_val()
259 dev->mt76.chandef.chan->band == NL80211_BAND_2GHZ && in mt76x2_phy_set_gain_val()
260 dev->mt76.chandef.width < NL80211_CHAN_WIDTH_40) in mt76x2_phy_set_gain_val()
270 if (dev->mt76.chandef.chan->flags & IEEE80211_CHAN_RADAR) in mt76x2_phy_set_gain_val()
300 if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_80) { in mt76x2_phy_update_channel_gain()
318 if (dev->mt76.chandef.chan->band == NL80211_BAND_2GHZ) in mt76x2_phy_update_channel_gain()
322 else if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_80) in mt76x2_phy_update_channel_gain()
Dpci_phy.c15 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x2_phy_tssi_init_cal()
38 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x2_phy_channel_calibrate()
118 struct cfg80211_chan_def *chandef) in mt76x2_phy_set_channel() argument
120 struct ieee80211_channel *chan = chandef->chan; in mt76x2_phy_set_channel()
153 freq = chandef->chan->center_freq; in mt76x2_phy_set_channel()
154 freq1 = chandef->center_freq1; in mt76x2_phy_set_channel()
157 switch (chandef->width) { in mt76x2_phy_set_channel()
190 mt76x02_phy_set_bw(dev, chandef->width, ch_group_index); in mt76x2_phy_set_channel()
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/
D11h.c125 struct cfg80211_chan_def chandef; in mwifiex_dfs_cac_work_queue() local
131 chandef = priv->dfs_chandef; in mwifiex_dfs_cac_work_queue()
135 cfg80211_cac_event(priv->netdev, &chandef, in mwifiex_dfs_cac_work_queue()
157 cr_req->chan_desc.chan_num = radar_params->chandef->chan->hw_value; in mwifiex_cmd_issue_chan_report_request()
158 cr_req->chan_desc.chan_width = radar_params->chandef->width; in mwifiex_cmd_issue_chan_report_request()
164 radar_params->chandef->chan->hw_value); in mwifiex_cmd_issue_chan_report_request()
172 struct cfg80211_chan_def *chandef) in mwifiex_stop_radar_detection() argument
177 radar_params.chandef = chandef; in mwifiex_stop_radar_detection()
/Linux-v5.4/drivers/net/wireless/ath/ath9k/
Dchannel.c29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; in ath_set_channel() local
30 struct ieee80211_channel *chan = chandef->chan; in ath_set_channel()
43 chan->center_freq, chandef->width); in ath_set_channel()
50 ath9k_cmn_get_channel(hw, ah, chandef); in ath_set_channel()
118 cfg80211_chandef_create(&ctx->chandef, chan, NL80211_CHAN_HT20); in ath_chanctx_init()
131 struct cfg80211_chan_def *chandef) in ath_chanctx_set_channel() argument
137 if (chandef) in ath_chanctx_set_channel()
138 memcpy(&ctx->chandef, chandef, sizeof(*chandef)); in ath_chanctx_set_channel()
511 sc->cur_chan->chandef.center_freq1, in ath_chanctx_event()
802 struct cfg80211_chan_def *chandef) in ath_chanctx_switch() argument
[all …]
Dcommon.c301 struct cfg80211_chan_def *chandef) in ath9k_cmn_update_ichannel() argument
303 struct ieee80211_channel *chan = chandef->chan; in ath9k_cmn_update_ichannel()
312 switch (chandef->width) { in ath9k_cmn_update_ichannel()
325 if (chandef->center_freq1 > chandef->chan->center_freq) in ath9k_cmn_update_ichannel()
342 struct cfg80211_chan_def *chandef) in ath9k_cmn_get_channel() argument
344 struct ieee80211_channel *curchan = chandef->chan; in ath9k_cmn_get_channel()
348 ath9k_cmn_update_ichannel(channel, chandef); in ath9k_cmn_get_channel()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x0/
Dmain.c12 mt76x0_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) in mt76x0_set_channel() argument
20 mt76x0_phy_set_channel(dev, chandef); in mt76x0_set_channel()
45 mt76x0_set_channel(dev, &hw->conf.chandef); in mt76x0_config()
Dphy.c505 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x0_phy_tssi_dc_calibrate()
546 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x0_phy_tssi_adc_calibrate()
699 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x0_phy_get_delta_power()
847 mt76x0_get_tx_power_per_rate(dev, dev->mt76.chandef.chan, t); in mt76x0_phy_set_txpower()
848 mt76x0_get_power_info(dev, dev->mt76.chandef.chan, &info); in mt76x0_phy_set_txpower()
861 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x0_phy_calibrate()
913 struct cfg80211_chan_def *chandef) in mt76x0_phy_set_channel() argument
943 freq = chandef->chan->center_freq; in mt76x0_phy_set_channel()
944 freq1 = chandef->center_freq1; in mt76x0_phy_set_channel()
945 channel = chandef->chan->hw_value; in mt76x0_phy_set_channel()
[all …]
/Linux-v5.4/include/net/
Dcfg80211.h607 cfg80211_get_chandef_type(const struct cfg80211_chan_def *chandef) in cfg80211_get_chandef_type() argument
609 switch (chandef->width) { in cfg80211_get_chandef_type()
615 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type()
632 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef,
662 cfg80211_chandef_is_edmg(const struct cfg80211_chan_def *chandef) in cfg80211_chandef_is_edmg() argument
664 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg()
684 bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef);
694 const struct cfg80211_chan_def *chandef,
706 const struct cfg80211_chan_def *chandef,
720 ieee80211_chandef_rate_flags(struct cfg80211_chan_def *chandef) in ieee80211_chandef_rate_flags() argument
[all …]
/Linux-v5.4/drivers/net/wireless/intersil/orinoco/
Dcfg.c165 struct cfg80211_chan_def *chandef) in orinoco_set_monitor_channel() argument
172 if (!chandef->chan) in orinoco_set_monitor_channel()
175 if (cfg80211_get_chandef_type(chandef) != NL80211_CHAN_NO_HT) in orinoco_set_monitor_channel()
178 if (chandef->chan->band != NL80211_BAND_2GHZ) in orinoco_set_monitor_channel()
181 channel = ieee80211_frequency_to_channel(chandef->chan->center_freq); in orinoco_set_monitor_channel()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7603/
Dmcu.c400 .center_channel = dev->mt76.chandef.chan->hw_value, in mt7603_mcu_set_tx_power()
433 struct cfg80211_chan_def *chandef = &dev->mt76.chandef; in mt7603_mcu_set_channel() local
446 .control_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel()
447 .center_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel()
455 if (dev->mt76.chandef.width == NL80211_CHAN_WIDTH_40) { in mt7603_mcu_set_channel()
457 if (chandef->center_freq1 > chandef->chan->center_freq) in mt7603_mcu_set_channel()

12345678