| /linux/net/wireless/ |
| H A D | mesh.c | 133 if (!setup->chandef.chan) { in __cfg80211_join_mesh() 135 setup->chandef = wdev->u.mesh.preset_chandef; 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() 169 setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT; in __cfg80211_join_mesh() 170 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh() 179 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh() 181 if (setup->chandef.chan->band == NL80211_BAND_2GHZ) { in __cfg80211_join_mesh() [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 in cfg80211_ibss_wext_siwfreq() [all...] |
| H A D | mlme.c | 1031 struct cfg80211_chan_def chandef; in cfg80211_dfs_channels_update_work() 1080 cfg80211_chandef_create(&chandef, c, in cfg80211_dfs_channels_update_work() 1083 nl80211_radar_notify(rdev, &chandef, in cfg80211_dfs_channels_update_work() 1087 regulatory_propagate_dfs_state(wiphy, &chandef, in cfg80211_dfs_channels_update_work() 1110 struct cfg80211_chan_def *chandef, in __cfg80211_radar_event() 1115 trace_cfg80211_radar_event(wiphy, chandef, offchan); in __cfg80211_radar_event() 1117 /* only set the chandef supplied channel to unavailable, in in __cfg80211_radar_event() 1119 * spanned by the chandef. in __cfg80211_radar_event() 1121 cfg80211_set_dfs_state(wiphy, chandef, NL80211_DFS_UNAVAILABLE); in __cfg80211_radar_event() 1130 nl80211_radar_notify(rdev, chandef, NL80211_RADAR_DETECTE 1026 struct cfg80211_chan_def chandef; cfg80211_dfs_channels_update_work() local 1105 __cfg80211_radar_event(struct wiphy * wiphy,struct cfg80211_chan_def * chandef,bool offchan,gfp_t gfp) __cfg80211_radar_event() argument 1131 cfg80211_cac_event(struct net_device * netdev,const struct cfg80211_chan_def * chandef,enum nl80211_radar_event event,gfp_t gfp,unsigned int link_id) cfg80211_cac_event() argument 1179 __cfg80211_background_cac_event(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,const struct cfg80211_chan_def * chandef,enum nl80211_radar_event event) __cfg80211_background_cac_event() argument 1218 cfg80211_background_cac_event(struct cfg80211_registered_device * rdev,const struct cfg80211_chan_def * chandef,enum nl80211_radar_event event) cfg80211_background_cac_event() argument 1259 cfg80211_start_background_radar_detection(struct cfg80211_registered_device * rdev,struct wireless_dev * wdev,struct cfg80211_chan_def * chandef) cfg80211_start_background_radar_detection() argument [all...] |
| H A D | util.c | 2164 struct cfg80211_chan_def *chandef) in ieee80211_operating_class_to_chandef() 2174 chandef->chan = chan; in ieee80211_operating_class_to_chandef() 2194 chandef->center_freq1 = control_freq; in ieee80211_operating_class_to_chandef() 2195 chandef->width = NL80211_CHAN_WIDTH_20; in ieee80211_operating_class_to_chandef() 2202 chandef->center_freq1 = control_freq + 10; in ieee80211_operating_class_to_chandef() 2203 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef() 2210 chandef->center_freq1 = control_freq - 10; in ieee80211_operating_class_to_chandef() 2211 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef() 2214 chandef->center_freq1 = control_freq + 10 - (offset & 1) * 20; in ieee80211_operating_class_to_chandef() 2215 chandef in ieee80211_operating_class_to_chandef() 2148 ieee80211_operating_class_to_chandef(u8 operating_class,struct ieee80211_channel * chan,struct cfg80211_chan_def * chandef) ieee80211_operating_class_to_chandef() argument 2222 ieee80211_chandef_to_operating_class(struct cfg80211_chan_def * chandef,u8 * op_class) ieee80211_chandef_to_operating_class() argument 3001 cfg80211_radio_chandef_valid(const struct wiphy_radio * radio,const struct cfg80211_chan_def * chandef) cfg80211_radio_chandef_valid() argument 3023 struct cfg80211_chan_def chandef; cfg80211_wdev_channel_allowed() local [all...] |
| H A D | ap.c | 37 memset(&wdev->links[link_id].ap.chandef, 0, in ___cfg80211_stop_ap() 38 sizeof(wdev->links[link_id].ap.chandef)); in ___cfg80211_stop_ap()
|
| H A D | trace.h | 145 #define CHAN_DEF_ASSIGN(chandef) \ argument 147 if ((chandef) && (chandef)->chan) { \ 148 __entry->band = (chandef)->chan->band; \ 150 (chandef)->chan->center_freq; \ 152 (chandef)->chan->freq_offset; \ 153 __entry->width = (chandef)->width; \ 154 __entry->center_freq1 = (chandef)->center_freq1;\ 155 __entry->freq1_offset = (chandef)->freq1_offset;\ 156 __entry->center_freq2 = (chandef) [all...] |
| H A D | nl80211.c | 3786 struct cfg80211_chan_def *chandef) in _nl80211_parse_chandef() argument 3802 memset(chandef, 0, sizeof(*chandef)); in _nl80211_parse_chandef() 3803 chandef->chan = ieee80211_get_channel_khz(&rdev->wiphy, control_freq); in _nl80211_parse_chandef() 3804 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in _nl80211_parse_chandef() 3805 chandef->center_freq1 = KHZ_TO_MHZ(control_freq); in _nl80211_parse_chandef() 3806 chandef->freq1_offset = control_freq % 1000; in _nl80211_parse_chandef() 3807 chandef->center_freq2 = 0; in _nl80211_parse_chandef() 3808 chandef->s1g_primary_2mhz = false; in _nl80211_parse_chandef() 3810 if (!chandef->chan) { in _nl80211_parse_chandef() 3816 if (cfg80211_chandef_is_s1g(chandef)) in _nl80211_parse_chandef() [all …]
|
| H A D | core.h | 363 struct cfg80211_chan_def *chandef); 484 const struct cfg80211_chan_def *chandef, 488 const struct cfg80211_chan_def *chandef, 498 struct cfg80211_chan_def *chandef); 512 bool cfg80211_is_sub_chan(struct cfg80211_chan_def *chandef, 519 const struct cfg80211_chan_def *chandef, in elapsed_jiffies_msecs() 535 struct cfg80211_chan_def *chandef);
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | phy.c | 102 u8 iwl_mld_get_fw_ctrl_pos(const struct cfg80211_chan_def *chandef) in iwl_mld_get_fw_ctrl_pos() argument 104 int offs = chandef->chan->center_freq - chandef->center_freq1; in iwl_mld_get_fw_ctrl_pos() 134 struct cfg80211_chan_def *chandef = &phy->chandef; in iwl_mld_phy_fw_action() local 138 .puncture_mask = cpu_to_le16(chandef->punctured), in iwl_mld_phy_fw_action() 140 .ci.channel = cpu_to_le32(chandef->chan->hw_value), in iwl_mld_phy_fw_action() 141 .ci.band = iwl_mld_nl80211_band_to_fw(chandef->chan->band), in iwl_mld_phy_fw_action() 142 .ci.width = iwl_mld_nl80211_width_to_fw(chandef->width), in iwl_mld_phy_fw_action() 143 .ci.ctrl_pos = iwl_mld_get_fw_ctrl_pos(chandef), in iwl_mld_phy_fw_action() 193 struct cfg80211_chan_def *chandef = in iwl_mld_update_phy_chandef() local 196 phy->chandef = *chandef; in iwl_mld_update_phy_chandef()
|
| H A D | mlo.c | 658 const struct cfg80211_chan_def *chandef, in iwl_mld_get_emlsr_rssi_thresh() argument 661 if (WARN_ON(chandef->chan->band != NL80211_BAND_2GHZ && in iwl_mld_get_emlsr_rssi_thresh() 662 chandef->chan->band != NL80211_BAND_5GHZ && in iwl_mld_get_emlsr_rssi_thresh() 663 chandef->chan->band != NL80211_BAND_6GHZ)) in iwl_mld_get_emlsr_rssi_thresh() 670 switch (chandef->width) { in iwl_mld_get_emlsr_rssi_thresh() 703 if (link->chandef->chan->band == NL80211_BAND_2GHZ && mld->bt_is_active) in iwl_mld_emlsr_disallowed_with_link() 707 iwl_mld_get_emlsr_rssi_thresh(mld, link->chandef, false)) in iwl_mld_emlsr_disallowed_with_link() 746 data[n_data].chandef = &link_conf->chanreq.oper; in iwl_mld_set_link_sel_data() 765 switch (phy->chandef.width) { in iwl_mld_get_min_chan_load_thresh() 815 if (a->chandef->width <= b->chandef->width) in iwl_mld_channel_load_allows_emlsr() [all …]
|
| H A D | ftm-initiator.c | 68 u32 freq = peer->chandef.chan->center_freq; in iwl_mld_ftm_set_target_chandef() 72 switch (peer->chandef.width) { in iwl_mld_ftm_set_target_chandef() 95 peer->chandef.width); in iwl_mld_ftm_set_target_chandef() 104 (peer->chandef.width > NL80211_CHAN_WIDTH_20) ? in iwl_mld_ftm_set_target_chandef() 105 iwl_mld_get_fw_ctrl_pos(&peer->chandef) : 0; in iwl_mld_ftm_set_target_chandef() 107 target->band = iwl_mld_nl80211_band_to_fw(peer->chandef.chan->band); in iwl_mld_ftm_set_target_chandef()
|
| /linux/net/mac80211/ |
| 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 | util.c | 1264 struct cfg80211_chan_def *chandef, in ieee80211_put_preq_ies_band() argument 1310 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) { in ieee80211_put_preq_ies_band() 1316 ieee80211_frequency_to_channel(chandef->chan->center_freq)); in ieee80211_put_preq_ies_band() 1456 struct cfg80211_chan_def *chandef, in ieee80211_put_preq_ies() argument 1471 chandef, flags); in ieee80211_put_preq_ies() 1499 struct cfg80211_chan_def *chandef, in ieee80211_build_preq_ies() argument 1513 bands_used, rate_masks, chandef, in ieee80211_build_preq_ies() 1549 struct cfg80211_chan_def chandef; in ieee80211_build_probe_req() local 1560 chandef.width = sdata->vif.bss_conf.chanreq.oper.width; in ieee80211_build_probe_req() 1562 chandef.chan = NULL; in ieee80211_build_probe_req() [all …]
|
| H A D | tdls.c | 78 struct cfg80211_chan_def chandef; in ieee80211_tdls_add_subband() local 89 cfg80211_chandef_create(&chandef, ch, in ieee80211_tdls_add_subband() 91 if (cfg80211_reg_can_beacon_relax(wiphy, &chandef, in ieee80211_tdls_add_subband() 693 struct cfg80211_chan_def *chandef) in ieee80211_tdls_add_chan_switch_req_ies() argument 698 if (WARN_ON_ONCE(!chandef)) in ieee80211_tdls_add_chan_switch_req_ies() 703 ieee80211_frequency_to_channel(chandef->chan->center_freq); in ieee80211_tdls_add_chan_switch_req_ies() 746 struct cfg80211_chan_def *chandef) in ieee80211_tdls_add_ies() argument 778 oper_class, chandef); in ieee80211_tdls_add_ies() 910 struct cfg80211_chan_def *chandef) in ieee80211_tdls_build_mgmt_packet_data() argument 981 chandef); in ieee80211_tdls_build_mgmt_packet_data() [all …]
|
| H A D | mesh.c | 1034 struct cfg80211_chan_def *chandef; in ieee80211_mesh_build_beacon() local 1043 csa->settings.chandef.chan->center_freq); in ieee80211_mesh_build_beacon() 1062 switch (csa->settings.chandef.width) { in ieee80211_mesh_build_beacon() 1069 ct = cfg80211_get_chandef_type(&csa->settings.chandef); in ieee80211_mesh_build_beacon() 1086 chandef = &csa->settings.chandef; in ieee80211_mesh_build_beacon() 1087 ieee80211_ie_build_wide_bw_cs(pos, chandef); in ieee80211_mesh_build_beacon() 1331 params.chandef = csa_ie.chanreq.oper; in ieee80211_mesh_process_chnswitch() 1334 if (!cfg80211_chandef_usable(sdata->local->hw.wiphy, ¶ms.chandef, in ieee80211_mesh_process_chnswitch() 1336 !cfg80211_reg_can_beacon(sdata->local->hw.wiphy, ¶ms.chandef, in ieee80211_mesh_process_chnswitch() 1341 params.chandef.chan->center_freq, in ieee80211_mesh_process_chnswitch() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/tests/ |
| H A D | link-selection.c | 21 const struct cfg80211_chan_def *chandef; member 35 .chandef = &chandef_2ghz_20mhz, 46 .chandef = &chandef_2ghz_20mhz, 57 .chandef = &chandef_2ghz_20mhz, 69 .chandef = &chandef_2ghz_20mhz, 89 link->chanreq.oper = *test_param->input.link.chandef; in setup_link() 135 .chandef = test_param->input.link.chandef, in test_link_grading() 292 .chandef = params->chandef_a, in test_iwl_mld_link_pair_allows_emlsr() 296 .chandef = params->chandef_b, in test_iwl_mld_link_pair_allows_emlsr() 300 .chandef = params->primary_link_active ? a.chandef : b.chandef, in test_iwl_mld_link_pair_allows_emlsr()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | ftm-responder.c | 26 static int iwl_mvm_ftm_responder_set_bw_v1(struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_set_bw_v1() argument 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() 51 static int iwl_mvm_ftm_responder_set_bw_v2(struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_set_bw_v2() argument 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 [all …]
|
| /linux/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/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 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() 506 sc->cur_chan->chandef.center_freq1, in ath_chanctx_event() 797 struct cfg80211_chan_def *chandef) in ath_chanctx_switch() argument [all …]
|
| /linux/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()
|
| /linux/drivers/net/wireless/realtek/rtl8xxxu/ |
| H A D | 8188f.c | 521 channel = (u8)hw->conf.chandef.chan->hw_value; in rtl8188fu_config_channel() 535 val32 |= hw->conf.chandef.width == NL80211_CHAN_WIDTH_40; in rtl8188fu_config_channel() 540 val32 |= hw->conf.chandef.width == NL80211_CHAN_WIDTH_40; in rtl8188fu_config_channel() 578 if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_20 || in rtl8188fu_config_channel() 579 hw->conf.chandef.width == NL80211_CHAN_WIDTH_20_NOHT) in rtl8188fu_config_channel() 581 else if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_40) in rtl8188fu_config_channel() 585 if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_40) { in rtl8188fu_config_channel() 586 if (hw->conf.chandef.center_freq1 > in rtl8188fu_config_channel() 587 hw->conf.chandef.chan->center_freq) { in rtl8188fu_config_channel() 618 if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_20 || in rtl8188fu_config_channel() [all …]
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00config.c | 175 center_channel = spec->channels[conf->chandef.chan->hw_value].channel; in rt2x00ht_center_channel() 190 return conf->chandef.chan->hw_value; in rt2x00ht_center_channel() 218 hw_value = conf->chandef.chan->hw_value; in rt2x00lib_config() 252 rt2x00dev->curr_band = conf->chandef.chan->band; in rt2x00lib_config() 253 rt2x00dev->curr_freq = conf->chandef.chan->center_freq; in rt2x00lib_config()
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | scan.c | 112 struct cfg80211_chan_def chandef = {}; in mt76_scan_work() local 142 offchannel = mt76_offchannel_chandef(phy, dev->scan.chan, &chandef); in mt76_scan_work() 146 mt76_set_channel(phy, &chandef, offchannel); in mt76_scan_work() 151 if (chandef.chan->flags & (IEEE80211_CHAN_NO_IR | IEEE80211_CHAN_RADAR)) { in mt76_scan_work()
|
| /linux/drivers/net/wireless/ti/wl18xx/ |
| H A D | cmd.c | 32 cmd->channel = ch_switch->chandef.chan->hw_value; in wl18xx_cmd_channel_switch() 36 switch (ch_switch->chandef.chan->band) { in wl18xx_cmd_channel_switch() 45 ch_switch->chandef.chan->band); in wl18xx_cmd_channel_switch()
|