Home
last modified time | relevance | path

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

123456789

/kernel/linux/linux-5.10/net/wireless/
Dchan.c23 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef, in cfg80211_chandef_create() argument
30 chandef->chan = chan; in cfg80211_chandef_create()
31 chandef->freq1_offset = chan->freq_offset; in cfg80211_chandef_create()
32 chandef->center_freq2 = 0; in cfg80211_chandef_create()
33 chandef->edmg.bw_config = 0; in cfg80211_chandef_create()
34 chandef->edmg.channels = 0; in cfg80211_chandef_create()
38 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in cfg80211_chandef_create()
39 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
42 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create()
43 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
[all …]
Dmesh.c126 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
128 setup->chandef = wdev->preset_chandef; in __cfg80211_join_mesh()
131 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
150 setup->chandef.chan = chan; in __cfg80211_join_mesh()
154 if (setup->chandef.chan) in __cfg80211_join_mesh()
159 if (!setup->chandef.chan) in __cfg80211_join_mesh()
162 setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT; in __cfg80211_join_mesh()
163 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh()
173 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh()
175 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()
/kernel/linux/linux-5.10/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()
174 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data_v1() argument
181 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data_v1()
194 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data() argument
198 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data()
201 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data()
[all …]
Dftm-responder.c77 static int iwl_mvm_ftm_responder_set_bw_v1(struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_set_bw_v1() argument
80 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v1()
89 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1()
93 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1()
102 static int iwl_mvm_ftm_responder_set_bw_v2(struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_set_bw_v2() argument
106 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v2()
118 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2()
123 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2()
135 struct cfg80211_chan_def *chandef) in iwl_mvm_ftm_responder_cmd() argument
144 .channel_num = chandef->chan->hw_value, in iwl_mvm_ftm_responder_cmd()
[all …]
Dtdls.c388 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_config_channel_switch() argument
430 if (!chandef) { in iwl_mvm_tdls_config_channel_switch()
432 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch()
434 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch()
446 chandef = &chanctx->def; in iwl_mvm_tdls_config_channel_switch()
450 if (chandef) in iwl_mvm_tdls_config_channel_switch()
451 iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, chandef); in iwl_mvm_tdls_config_channel_switch()
541 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work()
559 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_channel_switch() argument
570 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch()
[all …]
/kernel/linux/linux-5.10/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()
348 const struct cfg80211_chan_def *chandef) in ieee80211_change_chanctx() argument
350 if (cfg80211_chandef_identical(&ctx->conf.def, chandef)) { in ieee80211_change_chanctx()
355 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
357 ctx->conf.def = *chandef; in ieee80211_change_chanctx()
[all …]
Dmesh.c97 cfg80211_chandef_create(&sta_chan_def, sdata->vif.bss_conf.chandef.chan, in mesh_matches_local()
109 if (!cfg80211_chandef_compatible(&sdata->vif.bss_conf.chandef, in mesh_matches_local()
432 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || in mesh_add_ht_cap_ie()
433 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || in mesh_add_ht_cap_ie()
434 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) in mesh_add_ht_cap_ie()
473 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || in mesh_add_ht_oper_ie()
474 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_5 || in mesh_add_ht_oper_ie()
475 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) in mesh_add_ht_oper_ie()
482 ieee80211_ie_build_ht_oper(pos, ht_cap, &sdata->vif.bss_conf.chandef, in mesh_add_ht_oper_ie()
504 sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT || in mesh_add_vht_cap_ie()
[all …]
Dspectmgmt.c108 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
112 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
116 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
120 cfg80211_chandef_create(&csa_ie->chandef, new_chan, in ieee80211_parse_ch_switch_ie()
123 switch (sdata->vif.bss_conf.chandef.width) { in ieee80211_parse_ch_switch_ie()
126 csa_ie->chandef.width = in ieee80211_parse_ch_switch_ie()
127 sdata->vif.bss_conf.chandef.width; in ieee80211_parse_ch_switch_ie()
154 new_vht_chandef = csa_ie->chandef; in ieee80211_parse_ch_switch_ie()
174 &csa_ie->chandef)) { in ieee80211_parse_ch_switch_ie()
180 csa_ie->chandef = new_vht_chandef; in ieee80211_parse_ch_switch_ie()
Dutil.c1778 struct cfg80211_chan_def *chandef, in ieee80211_build_preq_ies_band() argument
1800 rate_flags = ieee80211_chandef_rate_flags(chandef); in ieee80211_build_preq_ies_band()
1801 shift = ieee80211_chandef_get_shift(chandef); in ieee80211_build_preq_ies_band()
1852 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) { in ieee80211_build_preq_ies_band()
1858 chandef->chan->center_freq); in ieee80211_build_preq_ies_band()
1986 struct cfg80211_chan_def *chandef, in ieee80211_build_preq_ies() argument
2001 chandef, in ieee80211_build_preq_ies()
2034 struct cfg80211_chan_def chandef; in ieee80211_build_probe_req() local
2046 chandef.width = sdata->vif.bss_conf.chandef.width; in ieee80211_build_probe_req()
2048 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()
438 sta->tdls_chandef = sdata->vif.bss_conf.chandef; in ieee80211_tdls_add_setup_start_ies()
567 sta->tdls_chandef = sdata->vif.bss_conf.chandef; in ieee80211_tdls_add_setup_cfm_ies()
613 &sdata->vif.bss_conf.chandef, prot, in ieee80211_tdls_add_setup_cfm_ies()
648 struct cfg80211_chan_def *chandef) in ieee80211_tdls_add_chan_switch_req_ies() argument
653 if (WARN_ON_ONCE(!chandef)) in ieee80211_tdls_add_chan_switch_req_ies()
658 ieee80211_frequency_to_channel(chandef->chan->center_freq); in ieee80211_tdls_add_chan_switch_req_ies()
[all …]
Dmain.c97 struct cfg80211_chan_def chandef = {}; in ieee80211_hw_conf_chan() local
105 chandef = local->scan_chandef; in ieee80211_hw_conf_chan()
107 chandef.chan = local->tmp_channel; in ieee80211_hw_conf_chan()
108 chandef.width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_hw_conf_chan()
109 chandef.center_freq1 = chandef.chan->center_freq; in ieee80211_hw_conf_chan()
110 chandef.freq1_offset = chandef.chan->freq_offset; in ieee80211_hw_conf_chan()
112 chandef = local->_oper_chandef; in ieee80211_hw_conf_chan()
114 WARN(!cfg80211_chandef_valid(&chandef), in ieee80211_hw_conf_chan()
116 chandef.chan->center_freq, chandef.chan->freq_offset, in ieee80211_hw_conf_chan()
117 chandef.width, chandef.center_freq1, chandef.freq1_offset, in ieee80211_hw_conf_chan()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/
Devent.c142 struct cfg80211_chan_def chandef; in qtnf_event_handle_bss_join() local
172 qlink_chandef_q2cfg(wiphy, &join_info->chan, &chandef); in qtnf_event_handle_bss_join()
173 if (!cfg80211_chandef_valid(&chandef)) { in qtnf_event_handle_bss_join()
176 chandef.chan ? chandef.chan->center_freq : 0, in qtnf_event_handle_bss_join()
177 chandef.center_freq1, in qtnf_event_handle_bss_join()
178 chandef.center_freq2, in qtnf_event_handle_bss_join()
179 chandef.width); in qtnf_event_handle_bss_join()
184 bss = cfg80211_get_bss(wiphy, chandef.chan, join_info->bssid, in qtnf_event_handle_bss_join()
190 join_info->bssid, chandef.chan->hw_value); in qtnf_event_handle_bss_join()
213 bss = cfg80211_inform_bss(wiphy, chandef.chan, in qtnf_event_handle_bss_join()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dusb_phy.c13 struct ieee80211_channel *chan = dev->mphy.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->mphy.chandef.chan; in mt76x2u_phy_set_channel()
Dphy.c139 enum nl80211_chan_width width = dev->mphy.chandef.width; in mt76x2_phy_set_txpower()
140 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_phy_set_txpower()
205 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_phy_tssi_compensate()
255 dev->mphy.chandef.width >= NL80211_CHAN_WIDTH_40) in mt76x2_phy_set_gain_val()
259 dev->mphy.chandef.chan->band == NL80211_BAND_2GHZ && in mt76x2_phy_set_gain_val()
260 dev->mphy.chandef.width < NL80211_CHAN_WIDTH_40) in mt76x2_phy_set_gain_val()
270 if (dev->mphy.chandef.chan->flags & IEEE80211_CHAN_RADAR) in mt76x2_phy_set_gain_val()
300 if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_80) { in mt76x2_phy_update_channel_gain()
318 if (dev->mphy.chandef.chan->band == NL80211_BAND_2GHZ) in mt76x2_phy_update_channel_gain()
322 else if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_80) in mt76x2_phy_update_channel_gain()
Dpci_phy.c15 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_phy_tssi_init_cal()
38 struct ieee80211_channel *chan = dev->mphy.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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
42 mt76x0_set_channel(dev, &hw->conf.chandef); in mt76x0_config()
Dphy.c505 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_tssi_dc_calibrate()
546 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_tssi_adc_calibrate()
699 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_get_delta_power()
847 mt76x0_get_tx_power_per_rate(dev, dev->mphy.chandef.chan, t); in mt76x0_phy_set_txpower()
848 mt76x0_get_power_info(dev, dev->mphy.chandef.chan, &info); in mt76x0_phy_set_txpower()
861 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_calibrate()
912 struct cfg80211_chan_def *chandef) in mt76x0_phy_set_channel() argument
942 freq = chandef->chan->center_freq; in mt76x0_phy_set_channel()
943 freq1 = chandef->center_freq1; in mt76x0_phy_set_channel()
944 channel = chandef->chan->hw_value; in mt76x0_phy_set_channel()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/net/
Dcfg80211.h765 cfg80211_get_chandef_type(const struct cfg80211_chan_def *chandef) in cfg80211_get_chandef_type() argument
767 switch (chandef->width) { in cfg80211_get_chandef_type()
773 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type()
790 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef,
821 cfg80211_chandef_is_edmg(const struct cfg80211_chan_def *chandef) in cfg80211_chandef_is_edmg() argument
823 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg()
843 bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef);
853 const struct cfg80211_chan_def *chandef,
865 const struct cfg80211_chan_def *chandef,
879 ieee80211_chandef_rate_flags(struct cfg80211_chan_def *chandef) in ieee80211_chandef_rate_flags() argument
[all …]

123456789