Home
last modified time | relevance | path

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

123456789

/linux/net/wireless/
A Dchan.c30 chandef->chan = chan; 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()
66 if (!chandef->edmg.channels || !chandef->edmg.bw_config) in cfg80211_edmg_chandef_valid()
201 if (!chandef->chan) in cfg80211_chandef_valid()
209 switch (chandef->width) { in cfg80211_chandef_valid()
232 chandef->chan)); in cfg80211_chandef_valid()
264 if (chandef->center_freq1 - chandef->center_freq2 == 80 || in cfg80211_chandef_valid()
265 chandef->center_freq2 - chandef->center_freq1 == 80) in cfg80211_chandef_valid()
[all …]
A Dmesh.c126 if (!setup->chandef.chan) { 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()
163 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh()
199 &setup->chandef, in __cfg80211_join_mesh()
214 wdev->chandef = setup->chandef; in __cfg80211_join_mesh()
242 chandef->chan); in cfg80211_set_mesh_channel()
244 wdev->chandef = *chandef; in cfg80211_set_mesh_channel()
[all …]
A 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()
A Dibss.c113 band = params->chandef.chan->band; in __cfg80211_join_ibss()
136 wdev->chandef = params->chandef; in __cfg80211_join_ibss()
143 wdev->wext.ibss.chandef = params->chandef; in __cfg80211_join_ibss()
185 memset(&wdev->chandef, 0, sizeof(wdev->chandef)); in __cfg80211_clear_ibss()
251 if (!wdev->wext.ibss.chandef.chan) { in cfg80211_ibss_wext_join()
279 cfg80211_chandef_create(&wdev->wext.ibss.chandef, new_chan, in cfg80211_ibss_wext_join()
339 if (wdev->wext.ibss.chandef.chan == chan) in cfg80211_ibss_wext_siwfreq()
352 cfg80211_chandef_create(&wdev->wext.ibss.chandef, chan, in cfg80211_ibss_wext_siwfreq()
381 else if (wdev->wext.ibss.chandef.chan) in cfg80211_ibss_wext_giwfreq()
382 chan = wdev->wext.ibss.chandef.chan; in cfg80211_ibss_wext_giwfreq()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dphy-ctxt.c14 switch (chandef->width) { in iwl_mvm_get_channel_width()
36 switch (chandef->chan->center_freq - chandef->center_freq1) { in iwl_mvm_get_ctrl_pos()
130 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data_v1() argument
155 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data()
172 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_apply() argument
223 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_add() argument
230 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_add()
253 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_changed() argument
276 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_changed()
277 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_changed()
[all …]
A Dftm-responder.c26 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v1()
35 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1()
39 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1()
52 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v2()
64 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2()
69 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2()
75 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2()
107 struct cfg80211_chan_def *chandef) in iwl_mvm_ftm_responder_cmd() argument
116 .channel_num = chandef->chan->hw_value, in iwl_mvm_ftm_responder_cmd()
150 err = iwl_mvm_ftm_responder_set_bw_v2(chandef, &cmd.format_bw, in iwl_mvm_ftm_responder_cmd()
[all …]
A Dtdls.c332 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_config_channel_switch() argument
374 if (!chandef) { in iwl_mvm_tdls_config_channel_switch()
376 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch()
378 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch()
390 chandef = &chanctx->def; in iwl_mvm_tdls_config_channel_switch()
394 if (chandef) in iwl_mvm_tdls_config_channel_switch()
485 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work()
503 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_channel_switch() argument
514 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch()
528 oper_class, chandef, 0, 0, 0, in iwl_mvm_tdls_channel_switch()
[all …]
/linux/net/mac80211/
A Dibss.c201 chandef); in ieee80211_ibss_build_presp()
266 chan = chandef.chan; in __ieee80211_sta_join_ibss()
429 chandef.width = sdata->u.ibss.chandef.width; in ieee80211_sta_join_ibss()
434 chandef = sdata->u.ibss.chandef; in ieee80211_sta_join_ibss()
477 &chandef, in ieee80211_sta_join_ibss()
816 params.chandef = csa_ie.chandef; in ieee80211_ibss_process_chanswitch()
828 cfg80211_chandef_create(&params.chandef, params.chandef.chan, in ieee80211_ibss_process_chanswitch()
833 if (params.chandef.width != ifibss->chandef.width) { in ieee80211_ibss_process_chanswitch()
1068 &chandef); in ieee80211_update_sta_info()
1080 &chandef)) in ieee80211_update_sta_info()
[all …]
A Dchan.c187 chandef)) in ieee80211_find_reservation_chanctx()
638 chandef->width = in ieee80211_del_chanctx()
642 chandef->center_freq1 = chandef->chan->center_freq; in ieee80211_del_chanctx()
643 chandef->freq1_offset = chandef->chan->freq_offset; in ieee80211_del_chanctx()
1106 sdata->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
1112 vlan->vif.bss_conf.chandef = *chandef; in ieee80211_vif_update_chandef()
1146 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_reassign()
1221 if (WARN_ON(!chandef)) in ieee80211_vif_use_reserved_assign()
1276 if (WARN_ON(!chandef)) in ieee80211_chsw_switch_hwconf()
1678 chandef, in ieee80211_vif_use_channel()
[all …]
A Dmesh.c555 &sdata->vif.bss_conf.chandef); in mesh_add_vht_oper_ie()
887 struct cfg80211_chan_def *chandef; in ieee80211_mesh_build_beacon() local
939 chandef = &csa->settings.chandef; in ieee80211_mesh_build_beacon()
1175 params.chandef = csa_ie.chandef; in ieee80211_mesh_process_chnswitch()
1186 params.chandef.width, in ieee80211_mesh_process_chnswitch()
1187 params.chandef.center_freq1, in ieee80211_mesh_process_chnswitch()
1188 params.chandef.center_freq2); in ieee80211_mesh_process_chnswitch()
1193 &params.chandef, in ieee80211_mesh_process_chnswitch()
1202 params.chandef.width, in ieee80211_mesh_process_chnswitch()
1203 params.chandef.center_freq1, in ieee80211_mesh_process_chnswitch()
[all …]
A 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()
A Dutil.c2019 chandef, in ieee80211_build_preq_ies()
2064 chandef.width = sdata->vif.bss_conf.chandef.width; in ieee80211_build_probe_req()
3041 if (chandef->center_freq1 > chandef->chan->center_freq) in ieee80211_ie_build_ht_oper()
3122 if (chandef->chan->center_freq < chandef->center_freq1) in ieee80211_ie_build_vht_oper()
3204 if (chandef->chan->center_freq < chandef->center_freq1) in ieee80211_ie_build_he_oper()
3256 cfg80211_chandef_create(chandef, chandef->chan, channel_type); in ieee80211_chandef_ht_oper()
3380 *chandef = new; in ieee80211_chandef_vht_oper()
3868 chandef = sdata->vif.bss_conf.chandef; in ieee80211_dfs_cac_cancel()
3871 &chandef, in ieee80211_dfs_cac_cancel()
3883 struct cfg80211_chan_def chandef = local->hw.conf.chandef; in ieee80211_dfs_radar_detected_work() local
[all …]
A Dtdls.c77 struct cfg80211_chan_def chandef; in ieee80211_tdls_add_subband() local
653 if (WARN_ON_ONCE(!chandef)) in ieee80211_tdls_add_chan_switch_req_ies()
731 oper_class, chandef); in ieee80211_tdls_add_ies()
923 chandef); in ieee80211_tdls_build_mgmt_packet_data()
995 chandef); in ieee80211_tdls_prep_mgmt_packet()
1529 oper_class, chandef); in ieee80211_tdls_ch_sw_tmpl_get()
1553 sta->sta.addr, chandef->chan->center_freq, chandef->width); in ieee80211_tdls_ch_sw_tmpl_get()
1569 if (chandef->chan->freq_offset) in ieee80211_tdls_channel_switch()
1780 struct cfg80211_chan_def chandef; in ieee80211_process_tdls_channel_switch_req() local
1910 params.chandef = &chandef; in ieee80211_process_tdls_channel_switch_req()
[all …]
A 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()
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()
118 chandef.center_freq2); in ieee80211_hw_conf_chan()
[all …]
A Dmlme.c161 chandef->chan = channel; in ieee80211_determine_chantype()
238 vht_chandef = *chandef; in ieee80211_determine_chantype()
292 *chandef = vht_chandef; in ieee80211_determine_chantype()
316 cfg80211_chandef_identical(chandef, &sdata->vif.bss_conf.chandef)) in ieee80211_determine_chantype()
430 if (cfg80211_chandef_identical(&chandef, &sdata->vif.bss_conf.chandef)) in ieee80211_config_bw()
437 chandef.chan->freq_offset, chandef.width, in ieee80211_config_bw()
438 chandef.center_freq1, chandef.freq1_offset, in ieee80211_config_bw()
1321 ch_switch.chandef = csa_ie.chandef; in ieee80211_sta_process_chanswitch()
1346 csa_ie.chandef.width, csa_ie.chandef.center_freq1, in ieee80211_sta_process_chanswitch()
1360 csa_ie.chandef.width, csa_ie.chandef.center_freq1, in ieee80211_sta_process_chanswitch()
[all …]
/linux/drivers/net/wireless/quantenna/qtnfmac/
A Devent.c176 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()
457 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_freq_change()
458 chandef.width); in qtnf_event_handle_freq_change()
463 mac->macid, chandef.chan->hw_value, chandef.center_freq1, in qtnf_event_handle_freq_change()
464 chandef.center_freq2, chandef.width); in qtnf_event_handle_freq_change()
507 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_radar()
514 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_radar()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
A 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()
A 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()
A 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()
/linux/drivers/net/wireless/ath/ath9k/
A Dchannel.c29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; in ath_set_channel() local
43 chan->center_freq, chandef->width); in ath_set_channel()
137 if (chandef) in ath_chanctx_set_channel()
138 memcpy(&ctx->chandef, chandef, sizeof(*chandef)); in ath_chanctx_set_channel()
810 if (chandef) in ath_chanctx_switch()
811 ctx->chandef = *chandef; in ath_chanctx_switch()
826 if (chandef) { in ath_chanctx_switch()
827 ctx->chandef = *chandef; in ath_chanctx_switch()
837 if (chandef) { in ath_chanctx_switch()
840 chandef->center_freq1, in ath_chanctx_switch()
[all …]
A 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/drivers/net/wireless/marvell/mwifiex/
A 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/drivers/net/wireless/mediatek/mt76/mt76x0/
A Dphy.c912 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()
947 switch (chandef->width) { in mt76x0_phy_set_channel()
970 mt76x0_phy_bbp_set_bw(dev, chandef->width); in mt76x0_phy_set_channel()
972 if (chandef->width == NL80211_CHAN_WIDTH_80 || in mt76x0_phy_set_channel()
973 chandef->width == NL80211_CHAN_WIDTH_40) in mt76x0_phy_set_channel()
980 mt76x02_phy_set_band(dev, chandef->chan->band, in mt76x0_phy_set_channel()
991 mt76x0_phy_set_band(dev, chandef->chan->band); in mt76x0_phy_set_channel()
[all …]
/linux/include/net/
A Dcfg80211.h768 switch (chandef->width) { in cfg80211_get_chandef_type()
774 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type()
824 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg()
882 switch (chandef->width) { in ieee80211_chandef_rate_flags()
907 switch (chandef->width) { in ieee80211_chandef_max_power()
910 chandef->chan->max_power); in ieee80211_chandef_max_power()
913 chandef->chan->max_power); in ieee80211_chandef_max_power()
917 return chandef->chan->max_power; in ieee80211_chandef_max_power()
1243 struct cfg80211_chan_def chandef; member
6569 switch (chandef->width) { in cfg80211_chandef_to_scan_width()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
A Dmcu.c354 .center_channel = dev->mphy.chandef.chan->hw_value, in mt7603_mcu_set_tx_power()
387 struct cfg80211_chan_def *chandef = &dev->mphy.chandef; in mt7603_mcu_set_channel() local
400 .control_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel()
401 .center_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel()
409 if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_40) { in mt7603_mcu_set_channel()
411 if (chandef->center_freq1 > chandef->chan->center_freq) in mt7603_mcu_set_channel()

Completed in 101 milliseconds

123456789