/linux-6.3-rc2/net/wireless/ |
A D | chan.c | 30 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() 204 if (!chandef->chan) in cfg80211_chandef_valid() 212 switch (chandef->width) { in cfg80211_chandef_valid() 235 chandef->chan)); in cfg80211_chandef_valid() 255 if (chandef->center_freq1 - chandef->center_freq2 == 80 || in cfg80211_chandef_valid() 256 chandef->center_freq2 - chandef->center_freq1 == 80) in cfg80211_chandef_valid() [all …]
|
A D | mesh.c | 130 if (!setup->chandef.chan) { in __cfg80211_join_mesh() 135 if (!setup->chandef.chan) { in __cfg80211_join_mesh() 154 setup->chandef.chan = chan; in __cfg80211_join_mesh() 158 if (setup->chandef.chan) in __cfg80211_join_mesh() 163 if (!setup->chandef.chan) in __cfg80211_join_mesh() 167 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh() 203 &setup->chandef, in __cfg80211_join_mesh() 218 wdev->u.mesh.chandef = setup->chandef; in __cfg80211_join_mesh() 246 chandef->chan); in cfg80211_set_mesh_channel() 248 wdev->u.mesh.chandef = *chandef; in cfg80211_set_mesh_channel() [all …]
|
A D | ocb.c | 33 if (WARN_ON(!setup->chandef.chan)) in __cfg80211_join_ocb() 38 wdev->u.ocb.chandef = setup->chandef; in __cfg80211_join_ocb() 73 memset(&wdev->u.ocb.chandef, 0, sizeof(wdev->u.ocb.chandef)); in __cfg80211_leave_ocb()
|
A D | mlme.c | 868 struct cfg80211_chan_def chandef; in cfg80211_dfs_channels_update_work() local 917 cfg80211_chandef_create(&chandef, c, in cfg80211_dfs_channels_update_work() 920 nl80211_radar_notify(rdev, &chandef, in cfg80211_dfs_channels_update_work() 947 struct cfg80211_chan_def *chandef, in __cfg80211_radar_event() argument 973 const struct cfg80211_chan_def *chandef, in cfg80211_cac_event() argument 996 memcpy(&rdev->cac_done_chandef, chandef, in cfg80211_cac_event() 1027 if (!cfg80211_chandef_valid(chandef)) in __cfg80211_background_cac_event() 1036 memcpy(&rdev->cac_done_chandef, chandef, sizeof(*chandef)); in __cfg80211_background_cac_event() 1063 chandef, event); in cfg80211_background_cac_event() 1099 struct cfg80211_chan_def *chandef) in cfg80211_start_background_radar_detection() argument [all …]
|
A D | ibss.c | 112 band = params->chandef.chan->band; in __cfg80211_join_ibss() 133 wdev->u.ibss.chandef = params->chandef; in __cfg80211_join_ibss() 140 wdev->wext.ibss.chandef = params->chandef; in __cfg80211_join_ibss() 182 memset(&wdev->u.ibss.chandef, 0, sizeof(wdev->u.ibss.chandef)); in __cfg80211_clear_ibss() 248 if (!wdev->wext.ibss.chandef.chan) { in cfg80211_ibss_wext_join() 276 cfg80211_chandef_create(&wdev->wext.ibss.chandef, new_chan, in cfg80211_ibss_wext_join() 336 if (wdev->wext.ibss.chandef.chan == chan) in cfg80211_ibss_wext_siwfreq() 349 cfg80211_chandef_create(&wdev->wext.ibss.chandef, chan, in cfg80211_ibss_wext_siwfreq() 378 else if (wdev->wext.ibss.chandef.chan) in cfg80211_ibss_wext_giwfreq() 379 chan = wdev->wext.ibss.chandef.chan; in cfg80211_ibss_wext_giwfreq()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | phy-ctxt.c | 14 switch (chandef->width) { in iwl_mvm_get_channel_width() 38 int offs = chandef->chan->center_freq - chandef->center_freq1; in iwl_mvm_get_ctrl_pos() 155 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data() 262 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_add() argument 269 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_add() 270 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_add() 302 ctxt->channel == chandef->chan && in iwl_mvm_phy_ctxt_changed() 303 ctxt->width == chandef->width && in iwl_mvm_phy_ctxt_changed() 324 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_changed() 325 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_changed() [all …]
|
A D | ftm-responder.c | 26 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 117 .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 D | tdls.c | 332 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-6.3-rc2/net/mac80211/ |
A D | ibss.c | 201 chandef); in ieee80211_ibss_build_presp() 265 chan = chandef.chan; in __ieee80211_sta_join_ibss() 426 chandef.width = sdata->u.ibss.chandef.width; in ieee80211_sta_join_ibss() 431 chandef = sdata->u.ibss.chandef; in ieee80211_sta_join_ibss() 474 &chandef, in ieee80211_sta_join_ibss() 816 params.chandef = csa_ie.chandef; in ieee80211_ibss_process_chanswitch() 828 cfg80211_chandef_create(¶ms.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() 1081 &chandef)) in ieee80211_update_sta_info() [all …]
|
A D | chan.c | 189 chandef)) in ieee80211_find_reservation_chanctx() 713 chandef->width = in ieee80211_del_chanctx() 717 chandef->center_freq1 = chandef->chan->center_freq; in ieee80211_del_chanctx() 718 chandef->freq1_offset = chandef->chan->freq_offset; in ieee80211_del_chanctx() 1214 link->conf->chandef = *chandef; in ieee80211_link_update_chandef() 1227 vlan_conf->chandef = *chandef; in ieee80211_link_update_chandef() 1265 if (WARN_ON(!chandef)) in ieee80211_link_use_reserved_reassign() 1342 if (WARN_ON(!chandef)) in ieee80211_link_use_reserved_assign() 1398 if (WARN_ON(!chandef)) in ieee80211_chsw_switch_hwconf() 1811 chandef, in ieee80211_link_use_channel() [all …]
|
A D | mesh.c | 556 &sdata->vif.bss_conf.chandef); in mesh_add_vht_oper_ie() 888 struct cfg80211_chan_def *chandef; in ieee80211_mesh_build_beacon() local 940 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 ¶ms.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 D | spectmgmt.c | 108 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 D | util.c | 2231 chandef.width = sdata->vif.bss_conf.chandef.width; in ieee80211_build_probe_req() 3251 if (chandef->center_freq1 > chandef->chan->center_freq) in ieee80211_ie_build_ht_oper() 3340 if (chandef->chan->center_freq < chandef->center_freq1) in ieee80211_ie_build_vht_oper() 3433 if (chandef->chan->center_freq < chandef->center_freq1) in ieee80211_ie_build_he_oper() 3484 cfg80211_chandef_create(chandef, chandef->chan, channel_type); in ieee80211_chandef_ht_oper() 3608 *chandef = new; in ieee80211_chandef_vht_oper() 3654 if (chandef->center_freq1 > chandef->chan->center_freq) in ieee80211_chandef_eht_oper() 4181 chandef = sdata->vif.bss_conf.chandef; in ieee80211_dfs_cac_cancel() 4184 &chandef, in ieee80211_dfs_cac_cancel() 4196 struct cfg80211_chan_def chandef = local->hw.conf.chandef; in ieee80211_dfs_radar_detected_work() local [all …]
|
A D | tdls.c | 77 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() 1530 oper_class, chandef); in ieee80211_tdls_ch_sw_tmpl_get() 1554 sta->sta.addr, chandef->chan->center_freq, chandef->width); in ieee80211_tdls_ch_sw_tmpl_get() 1570 if (chandef->chan->freq_offset) in ieee80211_tdls_channel_switch() 1781 struct cfg80211_chan_def chandef; in ieee80211_process_tdls_channel_switch_req() local 1911 params.chandef = &chandef; in ieee80211_process_tdls_channel_switch_req() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/quantenna/qtnfmac/ |
A D | event.c | 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() 458 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_freq_change() 459 chandef.width); in qtnf_event_handle_freq_change() 464 mac->macid, chandef.chan->hw_value, chandef.center_freq1, in qtnf_event_handle_freq_change() 465 chandef.center_freq2, chandef.width); in qtnf_event_handle_freq_change() 508 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_radar() 515 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_radar() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt76x0/ |
A D | main.c | 12 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 if (!cfg80211_chandef_valid(&mphy->chandef)) in mt76x0_set_sar_specs() 49 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan, in mt76x0_set_sar_specs() 68 mt76x0_set_channel(dev, &hw->conf.chandef); in mt76x0_config() 77 mphy->chandef.chan, in mt76x0_config()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt76x2/ |
A D | usb_phy.c | 13 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 D | phy.c | 139 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 D | pci_phy.c | 15 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-6.3-rc2/drivers/net/wireless/marvell/mwifiex/ |
A D | 11h.c | 113 struct cfg80211_chan_def chandef; in mwifiex_dfs_cac_work_queue() local 119 chandef = priv->dfs_chandef; in mwifiex_dfs_cac_work_queue() 123 cfg80211_cac_event(priv->netdev, &chandef, in mwifiex_dfs_cac_work_queue() 145 cr_req->chan_desc.chan_num = radar_params->chandef->chan->hw_value; in mwifiex_cmd_issue_chan_report_request() 146 cr_req->chan_desc.chan_width = radar_params->chandef->width; in mwifiex_cmd_issue_chan_report_request() 152 radar_params->chandef->chan->hw_value); in mwifiex_cmd_issue_chan_report_request() 160 struct cfg80211_chan_def *chandef) in mwifiex_stop_radar_detection() argument 165 radar_params.chandef = chandef; in mwifiex_stop_radar_detection()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtw89/ |
A D | chan.c | 126 const struct cfg80211_chan_def *chandef, in __rtw89_config_entity_chandef() argument 131 hal->sub[idx].chandef = *chandef; in __rtw89_config_entity_chandef() 139 const struct cfg80211_chan_def *chandef) in rtw89_config_entity_chandef() argument 141 __rtw89_config_entity_chandef(rtwdev, idx, chandef, true); in rtw89_config_entity_chandef() 146 struct cfg80211_chan_def chandef = {0}; in rtw89_config_default_chandef() local 148 rtw89_get_default_chandef(&chandef); in rtw89_config_default_chandef() 149 __rtw89_config_entity_chandef(rtwdev, RTW89_SUB_ENTITY_0, &chandef, false); in rtw89_config_default_chandef()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/ |
A D | channel.c | 29 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 D | common.c | 301 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-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7603/ |
A D | mcu.c | 353 .center_channel = dev->mphy.chandef.chan->hw_value, in mt7603_mcu_set_tx_power() 386 struct cfg80211_chan_def *chandef = &dev->mphy.chandef; in mt7603_mcu_set_channel() local 399 .control_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel() 400 .center_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel() 408 if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_40) { in mt7603_mcu_set_channel() 410 if (chandef->center_freq1 > chandef->chan->center_freq) in mt7603_mcu_set_channel() 416 tx_power = mt76_get_sar_power(&dev->mphy, chandef->chan, tx_power); in mt7603_mcu_set_channel()
|
/linux-6.3-rc2/include/net/ |
A D | cfg80211.h | 840 switch (chandef->width) { in cfg80211_get_chandef_type() 846 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type() 896 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg() 992 switch (chandef->width) { in ieee80211_chandef_max_power() 995 chandef->chan->max_power); in ieee80211_chandef_max_power() 998 chandef->chan->max_power); in ieee80211_chandef_max_power() 1002 return chandef->chan->max_power; in ieee80211_chandef_max_power() 1324 struct cfg80211_chan_def chandef; member 1379 struct cfg80211_chan_def chandef; member 6971 switch (chandef->width) { in cfg80211_chandef_to_scan_width() [all …]
|