Home
last modified time | relevance | path

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

123456789

/linux/net/wireless/
H A Dchan.c23 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef, in cfg80211_chandef_create() argument
30 *chandef = (struct cfg80211_chan_def) { in cfg80211_chandef_create()
37 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in cfg80211_chandef_create()
38 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
41 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create()
42 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
45 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
46 chandef->center_freq1 = chan->center_freq + 10; in cfg80211_chandef_create()
49 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
50 chandef->center_freq1 = chan->center_freq - 10; in cfg80211_chandef_create()
[all …]
H A Dmesh.c133 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 Docb.c33 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 Dmlme.c1007 struct cfg80211_chan_def chandef; in cfg80211_dfs_channels_update_work() local
1056 cfg80211_chandef_create(&chandef, c, in cfg80211_dfs_channels_update_work()
1059 nl80211_radar_notify(rdev, &chandef, in cfg80211_dfs_channels_update_work()
1063 regulatory_propagate_dfs_state(wiphy, &chandef, in cfg80211_dfs_channels_update_work()
1086 struct cfg80211_chan_def *chandef, in __cfg80211_radar_event() argument
1091 trace_cfg80211_radar_event(wiphy, chandef, offchan); in __cfg80211_radar_event()
1097 cfg80211_set_dfs_state(wiphy, chandef, NL80211_DFS_UNAVAILABLE); in __cfg80211_radar_event()
1104 nl80211_radar_notify(rdev, chandef, NL80211_RADAR_DETECTED, NULL, gfp); in __cfg80211_radar_event()
1106 memcpy(&rdev->radar_chandef, chandef, sizeof(struct cfg80211_chan_def)); in __cfg80211_radar_event()
1112 const struct cfg80211_chan_def *chandef, in cfg80211_cac_event() argument
[all …]
H A Dibss.c114 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 Dutil.c2088 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()
2126 chandef->center_freq1 = control_freq + 10; in ieee80211_operating_class_to_chandef()
2127 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef()
2134 chandef->center_freq1 = control_freq - 10; in ieee80211_operating_class_to_chandef()
2135 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef()
2138 chandef->center_freq1 = control_freq + 10 - (offset & 1) * 20; in ieee80211_operating_class_to_chandef()
2139 chandef->width = NL80211_CHAN_WIDTH_40; in ieee80211_operating_class_to_chandef()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dphy-ctxt.c12 u8 iwl_mvm_get_channel_width(const struct cfg80211_chan_def *chandef) in iwl_mvm_get_channel_width() argument
14 switch (chandef->width) { in iwl_mvm_get_channel_width()
27 WARN(1, "Invalid channel width=%u", chandef->width); in iwl_mvm_get_channel_width()
36 u8 iwl_mvm_get_ctrl_pos(const struct cfg80211_chan_def *chandef) in iwl_mvm_get_ctrl_pos() argument
38 int offs = chandef->chan->center_freq - chandef->center_freq1; in iwl_mvm_get_ctrl_pos()
119 const struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data_v1() argument
126 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data_v1()
140 const struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data() argument
144 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data()
147 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data()
[all …]
H A Dftm-responder.c26 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 …]
H 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()
395 iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, 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()
[all …]
/linux/net/mac80211/
H A Dspectmgmt.c24 struct cfg80211_chan_def *chandef) in wbcs_elem_to_chandef() argument
28 u32 cf0 = ieee80211_channel_to_frequency(ccfs0, chandef->chan->band); in wbcs_elem_to_chandef()
29 u32 cf1 = ieee80211_channel_to_frequency(ccfs1, chandef->chan->band); in wbcs_elem_to_chandef()
34 chandef->width = NL80211_CHAN_WIDTH_160; in wbcs_elem_to_chandef()
35 chandef->center_freq1 = cf0; in wbcs_elem_to_chandef()
39 chandef->width = NL80211_CHAN_WIDTH_80P80; 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()
44 chandef->width = NL80211_CHAN_WIDTH_80; in wbcs_elem_to_chandef()
45 chandef->center_freq1 = cf0; in wbcs_elem_to_chandef()
[all …]
H A Dwbrf.c41 static void get_ranges_from_chandef(struct cfg80211_chan_def *chandef, in get_ranges_from_chandef() argument
48 bandwidth = nl80211_chan_width_to_mhz(chandef->width); in get_ranges_from_chandef()
50 get_chan_freq_boundary(chandef->center_freq1, bandwidth, &start_freq1, &end_freq1); in get_ranges_from_chandef()
56 if (chandef->width == NL80211_CHAN_WIDTH_80P80) { in get_ranges_from_chandef()
57 get_chan_freq_boundary(chandef->center_freq2, bandwidth, &start_freq2, &end_freq2); in get_ranges_from_chandef()
65 void ieee80211_add_wbrf(struct ieee80211_local *local, struct cfg80211_chan_def *chandef) in ieee80211_add_wbrf() argument
75 get_ranges_from_chandef(chandef, &ranges_in); in ieee80211_add_wbrf()
80 void ieee80211_remove_wbrf(struct ieee80211_local *local, struct cfg80211_chan_def *chandef) in ieee80211_remove_wbrf() argument
90 get_ranges_from_chandef(chandef, &ranges_in); in ieee80211_remove_wbrf()
H A Dibss.c41 struct cfg80211_chan_def *chandef, in ieee80211_ibss_build_presp() argument
92 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
93 rate_flags = ieee80211_chandef_rate_flags(chandef); in ieee80211_ibss_build_presp()
130 chandef->chan->center_freq); in ieee80211_ibss_build_presp()
144 csa_settings->chandef.chan->center_freq); in ieee80211_ibss_build_presp()
172 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT && in ieee80211_ibss_build_presp()
173 chandef->width != NL80211_CHAN_WIDTH_5 && in ieee80211_ibss_build_presp()
174 chandef->width != NL80211_CHAN_WIDTH_10 && in ieee80211_ibss_build_presp()
188 chandef, 0, false); in ieee80211_ibss_build_presp()
191 if (chandef->width != NL80211_CHAN_WIDTH_20 && in ieee80211_ibss_build_presp()
[all …]
H A Dutil.c1213 struct cfg80211_chan_def *chandef, in ieee80211_put_preq_ies_band() argument
1229 rate_flags = ieee80211_chandef_rate_flags(chandef); in ieee80211_put_preq_ies_band()
1262 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) { in ieee80211_put_preq_ies_band()
1268 ieee80211_frequency_to_channel(chandef->chan->center_freq)); in ieee80211_put_preq_ies_band()
1401 struct cfg80211_chan_def *chandef, in ieee80211_put_preq_ies() argument
1416 chandef, flags); in ieee80211_put_preq_ies()
1444 struct cfg80211_chan_def *chandef, in ieee80211_build_preq_ies() argument
1458 bands_used, rate_masks, chandef, in ieee80211_build_preq_ies()
1494 struct cfg80211_chan_def chandef; in ieee80211_build_probe_req() local
1505 chandef.width = sdata->vif.bss_conf.chanreq.oper.width; in ieee80211_build_probe_req()
[all …]
H A Dmain.c100 struct cfg80211_chan_def chandef = {}; in ieee80211_calc_hw_conf_chan() local
123 chandef = local->scan_chandef; in ieee80211_calc_hw_conf_chan()
125 chandef.chan = local->tmp_channel; in ieee80211_calc_hw_conf_chan()
126 chandef.width = NL80211_CHAN_WIDTH_20_NOHT; in ieee80211_calc_hw_conf_chan()
127 chandef.center_freq1 = chandef.chan->center_freq; in ieee80211_calc_hw_conf_chan()
128 chandef.freq1_offset = chandef.chan->freq_offset; in ieee80211_calc_hw_conf_chan()
130 chandef = *oper; in ieee80211_calc_hw_conf_chan()
132 chandef = local->dflt_chandef; in ieee80211_calc_hw_conf_chan()
135 if (WARN(!cfg80211_chandef_valid(&chandef), in ieee80211_calc_hw_conf_chan()
137 chandef.chan ? chandef.chan->center_freq : -1, in ieee80211_calc_hw_conf_chan()
[all …]
/linux/drivers/net/wireless/quantenna/qtnfmac/
H A 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()
214 bss = cfg80211_inform_bss(wiphy, chandef.chan, in qtnf_event_handle_bss_join()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/tests/
H A Dlinks.c68 const struct cfg80211_chan_def chandef; member
76 .chandef = {
85 .chandef = {
94 .chandef = {
103 .chandef = {
113 .chandef = {
124 .chandef = {
134 .chandef = {
143 .chandef = {
152 .chandef = {
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
H 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()
H 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()
H 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/marvell/mwifiex/
H A D11h.c113 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 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 …]
H 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/mediatek/mt76/mt76x0/
H A Dmain.c19 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/include/net/
H A Dcfg80211.h925 cfg80211_get_chandef_type(const struct cfg80211_chan_def *chandef) in cfg80211_get_chandef_type() argument
927 switch (chandef->width) { in cfg80211_get_chandef_type()
933 if (chandef->center_freq1 > chandef->chan->center_freq) in cfg80211_get_chandef_type()
950 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef,
982 cfg80211_chandef_is_edmg(const struct cfg80211_chan_def *chandef) in cfg80211_chandef_is_edmg() argument
984 return chandef->edmg.channels || chandef->edmg.bw_config; in cfg80211_chandef_is_edmg()
1013 bool cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef);
1023 const struct cfg80211_chan_def *chandef,
1035 const struct cfg80211_chan_def *chandef,
1048 const struct cfg80211_chan_def *chandef);
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmcu.c353 .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()

123456789