| /linux-6.15/net/wireless/ |
| H A D | chan.c | 64 chandef->center_freq1 : chandef->center_freq2); in cfg80211_get_start_freq() 81 chandef->center_freq1 : chandef->center_freq2); in cfg80211_get_end_freq() 155 if (!chandef->punctured) in valid_puncturing_bitmap() 177 if (!chandef->edmg.channels || !chandef->edmg.bw_config) in cfg80211_edmg_chandef_valid() 342 if (!chandef->chan) in cfg80211_chandef_valid() 373 chandef->chan)); in cfg80211_chandef_valid() 393 if (chandef->center_freq1 - chandef->center_freq2 == 80 || in cfg80211_chandef_valid() 394 chandef->center_freq2 - chandef->center_freq1 == 80) in cfg80211_chandef_valid() 448 if (!cfg80211_valid_center_freq(chandef->center_freq1, chandef->width)) in cfg80211_chandef_valid() 452 !cfg80211_valid_center_freq(chandef->center_freq2, chandef->width)) in cfg80211_chandef_valid() [all …]
|
| H A D | mesh.c | 133 if (!setup->chandef.chan) { in __cfg80211_join_mesh() 138 if (!setup->chandef.chan) { in __cfg80211_join_mesh() 157 setup->chandef.chan = chan; in __cfg80211_join_mesh() 161 if (setup->chandef.chan) in __cfg80211_join_mesh() 166 if (!setup->chandef.chan) in __cfg80211_join_mesh() 170 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 …]
|
| H 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() 57 if (!wdev->u.ocb.chandef.chan) in cfg80211_leave_ocb() 62 memset(&wdev->u.ocb.chandef, 0, sizeof(wdev->u.ocb.chandef)); in cfg80211_leave_ocb()
|
| H A D | ibss.c | 114 band = params->chandef.chan->band; in __cfg80211_join_ibss() 135 wdev->u.ibss.chandef = params->chandef; in __cfg80211_join_ibss() 142 wdev->wext.ibss.chandef = params->chandef; in __cfg80211_join_ibss() 184 memset(&wdev->u.ibss.chandef, 0, sizeof(wdev->u.ibss.chandef)); in cfg80211_clear_ibss() 228 if (!wdev->wext.ibss.chandef.chan) { in cfg80211_ibss_wext_join() 256 cfg80211_chandef_create(&wdev->wext.ibss.chandef, new_chan, in cfg80211_ibss_wext_join() 316 if (wdev->wext.ibss.chandef.chan == chan) in cfg80211_ibss_wext_siwfreq() 327 cfg80211_chandef_create(&wdev->wext.ibss.chandef, chan, in cfg80211_ibss_wext_siwfreq() 351 else if (wdev->wext.ibss.chandef.chan) in cfg80211_ibss_wext_giwfreq() 352 chan = wdev->wext.ibss.chandef.chan; in cfg80211_ibss_wext_giwfreq()
|
| H A D | mlme.c | 1008 struct cfg80211_chan_def chandef; in cfg80211_dfs_channels_update_work() local 1057 cfg80211_chandef_create(&chandef, c, in cfg80211_dfs_channels_update_work() 1060 nl80211_radar_notify(rdev, &chandef, in cfg80211_dfs_channels_update_work() 1087 struct cfg80211_chan_def *chandef, in __cfg80211_radar_event() argument 1113 const struct cfg80211_chan_def *chandef, in cfg80211_cac_event() argument 1138 memcpy(&rdev->cac_done_chandef, chandef, in cfg80211_cac_event() 1169 if (!cfg80211_chandef_valid(chandef)) in __cfg80211_background_cac_event() 1178 memcpy(&rdev->cac_done_chandef, chandef, sizeof(*chandef)); in __cfg80211_background_cac_event() 1206 chandef, event); in cfg80211_background_cac_event() 1241 struct cfg80211_chan_def *chandef) in cfg80211_start_background_radar_detection() argument [all …]
|
| H A D | util.c | 2088 struct cfg80211_chan_def *chandef) in ieee80211_operating_class_to_chandef() argument 2098 chandef->chan = chan; in ieee80211_operating_class_to_chandef() 2118 chandef->center_freq1 = control_freq; in ieee80211_operating_class_to_chandef() 2119 chandef->width = NL80211_CHAN_WIDTH_20; in ieee80211_operating_class_to_chandef() 2127 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef() 2135 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef() 2139 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef() 2144 chandef->width = NL80211_CHAN_WIDTH_80; in ieee80211_operating_class_to_chandef() 2166 u32 freq = chandef->center_freq1; in ieee80211_chandef_to_operating_class() 2194 switch (chandef->width) { in ieee80211_chandef_to_operating_class() [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H 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() 144 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data() 273 const struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_add() argument 283 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_add() 284 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_add() 333 ctxt->channel == chandef->chan && in iwl_mvm_phy_ctxt_changed() 334 ctxt->width == chandef->width && in iwl_mvm_phy_ctxt_changed() 355 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_changed() 356 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_changed() [all …]
|
| H A D | ftm-responder.c | 29 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v1() 38 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1() 42 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1() 55 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v2() 67 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 72 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 78 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 110 struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_cmd() argument 121 .channel_num = chandef->chan->hw_value, in iwl_mvm_ftm_responder_cmd() 136 iwl_mvm_phy_band_from_nl80211(chandef->chan->band); in iwl_mvm_ftm_responder_cmd() [all …]
|
| H 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() 501 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_channel_switch() argument 512 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch() 525 oper_class, chandef, 0, 0, 0, in iwl_mvm_tdls_channel_switch() [all …]
|
| /linux-6.15/net/mac80211/ |
| H A D | spectmgmt.c | 35 chandef->center_freq1 = cf0; in wbcs_elem_to_chandef() 40 chandef->center_freq1 = cf0; in wbcs_elem_to_chandef() 41 chandef->center_freq2 = cf1; in wbcs_elem_to_chandef() 45 chandef->center_freq1 = cf0; in wbcs_elem_to_chandef() 65 chandef->center_freq1 = cf0; in wbcs_elem_to_chandef() 85 chandef->chan = NULL; in validate_chandef_by_ht_vht_oper() 92 chan_width = chandef->width; in validate_chandef_by_ht_vht_oper() 139 chandef->chan = NULL; in validate_chandef_by_ht_vht_oper() 161 chandef->chan = NULL; in validate_chandef_by_6ghz_he_eht_oper() 217 eht_oper, chandef)) in validate_chandef_by_6ghz_he_eht_oper() [all …]
|
| H A D | wbrf.c | 42 static void get_ranges_from_chandef(struct cfg80211_chan_def *chandef, in get_ranges_from_chandef() argument 49 bandwidth = cfg80211_chandef_get_width(chandef); in get_ranges_from_chandef() 51 get_chan_freq_boundary(chandef->center_freq1, bandwidth, &start_freq1, &end_freq1); in get_ranges_from_chandef() 57 if (chandef->width == NL80211_CHAN_WIDTH_80P80) { in get_ranges_from_chandef() 58 get_chan_freq_boundary(chandef->center_freq2, bandwidth, &start_freq2, &end_freq2); in get_ranges_from_chandef() 66 void ieee80211_add_wbrf(struct ieee80211_local *local, struct cfg80211_chan_def *chandef) in ieee80211_add_wbrf() argument 76 get_ranges_from_chandef(chandef, &ranges_in); in ieee80211_add_wbrf() 81 void ieee80211_remove_wbrf(struct ieee80211_local *local, struct cfg80211_chan_def *chandef) in ieee80211_remove_wbrf() argument 91 get_ranges_from_chandef(chandef, &ranges_in); in ieee80211_remove_wbrf()
|
| H A D | ibss.c | 188 chandef, 0, false); in ieee80211_ibss_build_presp() 197 chandef); in ieee80211_ibss_build_presp() 416 chandef.width = sdata->u.ibss.chandef.width; in ieee80211_sta_join_ibss() 421 chandef = sdata->u.ibss.chandef; in ieee80211_sta_join_ibss() 462 &chandef, in ieee80211_sta_join_ibss() 816 cfg80211_chandef_create(¶ms.chandef, params.chandef.chan, in ieee80211_ibss_process_chanswitch() 821 if (params.chandef.width != ifibss->chandef.width) { in ieee80211_ibss_process_chanswitch() 851 ¶ms.chandef, in ieee80211_ibss_process_chanswitch() 1049 &chandef); in ieee80211_update_sta_info() 1062 &chandef)) in ieee80211_update_sta_info() [all …]
|
| H A D | util.c | 1494 chandef.chan = NULL; in ieee80211_build_probe_req() 1496 chandef.chan = chan; in ieee80211_build_probe_req() 2634 if (chandef->center_freq1 > chandef->chan->center_freq) in ieee80211_ie_build_ht_oper() 2723 if (chandef->chan->center_freq < chandef->center_freq1) in ieee80211_ie_build_vht_oper() 2890 if (chandef->chan->center_freq < chandef->center_freq1) in ieee80211_ie_build_eht_oper() 2897 if (chandef->chan->center_freq < chandef->center_freq1) in ieee80211_ie_build_eht_oper() 2945 cfg80211_chandef_create(chandef, chandef->chan, channel_type); in ieee80211_chandef_ht_oper() 3069 *chandef = new; in ieee80211_chandef_vht_oper() 3183 *chandef = he_chandef; in ieee80211_chandef_he_6ghz_oper() 4075 !chandef->chan)) in ieee80211_check_combinations() [all …]
|
| /linux-6.15/drivers/net/wireless/quantenna/qtnfmac/ |
| H 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.15/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | phy.c | 99 u8 iwl_mld_get_fw_ctrl_pos(const struct cfg80211_chan_def *chandef) in iwl_mld_get_fw_ctrl_pos() argument 101 int offs = chandef->chan->center_freq - chandef->center_freq1; in iwl_mld_get_fw_ctrl_pos() 131 struct cfg80211_chan_def *chandef = &phy->chandef; in iwl_mld_phy_fw_action() local 135 .puncture_mask = cpu_to_le16(chandef->punctured), in iwl_mld_phy_fw_action() 137 .ci.channel = cpu_to_le32(chandef->chan->hw_value), in iwl_mld_phy_fw_action() 138 .ci.band = iwl_mld_nl80211_band_to_fw(chandef->chan->band), in iwl_mld_phy_fw_action() 139 .ci.width = iwl_mld_nl80211_width_to_fw(chandef->width), in iwl_mld_phy_fw_action() 140 .ci.ctrl_pos = iwl_mld_get_fw_ctrl_pos(chandef), in iwl_mld_phy_fw_action()
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/tests/ |
| H A D | links.c | 76 .chandef = { 85 .chandef = { 94 .chandef = { 103 .chandef = { 113 .chandef = { 124 .chandef = { 134 .chandef = { 143 .chandef = { 152 .chandef = { 161 .chandef = { [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/tests/ |
| H A D | utils.h | 70 struct cfg80211_chan_def chandef; in iwlmld_kunit_add_chanctx() local 74 chandef = chandef_2ghz; in iwlmld_kunit_add_chanctx() 77 chandef = chandef_5ghz; in iwlmld_kunit_add_chanctx() 81 chandef = chandef_6ghz; in iwlmld_kunit_add_chanctx() 85 chandef.width = width; in iwlmld_kunit_add_chanctx() 87 return iwlmld_kunit_add_chanctx_from_def(&chandef); in iwlmld_kunit_add_chanctx()
|
| H A D | link-selection.c | 21 const struct cfg80211_chan_def *chandef; member 35 .chandef = &chandef_2ghz, 46 .chandef = &chandef_2ghz, 57 .chandef = &chandef_2ghz, 69 .chandef = &chandef_2ghz, 89 link->chanreq.oper = *test_param->input.link.chandef; in setup_link() 135 .band = test_param->input.link.chandef->chan->band, in test_link_grading() 256 struct iwl_mld_link_sel_data a = {.chandef = &chandef_a, in test_iwl_mld_channel_load_allows_emlsr() 258 struct iwl_mld_link_sel_data b = {.chandef = &chandef_b, in test_iwl_mld_channel_load_allows_emlsr()
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/mt76x2/ |
| H 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()
|
| H 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()
|
| H 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.15/drivers/net/wireless/marvell/mwifiex/ |
| H 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.15/drivers/net/wireless/ath/ath9k/ |
| H 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() 805 if (chandef) in ath_chanctx_switch() 806 ctx->chandef = *chandef; in ath_chanctx_switch() 821 if (chandef) { in ath_chanctx_switch() 822 ctx->chandef = *chandef; in ath_chanctx_switch() 832 if (chandef) { in ath_chanctx_switch() 835 chandef->center_freq1, in ath_chanctx_switch() [all …]
|
| H 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.15/drivers/net/wireless/mediatek/mt76/mt76x0/ |
| H A D | main.c | 19 mt76x0_phy_set_channel(dev, &mphy->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() 74 mphy->chandef.chan, in mt76x0_config()
|