Searched refs:chandef (Results 1 - 25 of 223) sorted by relevance

123456789

/linux-master/net/wireless/
H A Dchan.c23 void cfg80211_chandef_create(struct cfg80211_chan_def *chandef, argument
30 *chandef = (struct cfg80211_chan_def) {
37 chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
38 chandef->center_freq1 = chan->center_freq;
41 chandef->width = NL80211_CHAN_WIDTH_20;
42 chandef->center_freq1 = chan->center_freq;
45 chandef->width = NL80211_CHAN_WIDTH_40;
46 chandef->center_freq1 = chan->center_freq + 10;
49 chandef->width = NL80211_CHAN_WIDTH_40;
50 chandef
89 valid_puncturing_bitmap(const struct cfg80211_chan_def *chandef) argument
125 cfg80211_edmg_chandef_valid(const struct cfg80211_chan_def *chandef) argument
266 cfg80211_chandef_valid(const struct cfg80211_chan_def *chandef) argument
566 cfg80211_set_dfs_state(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef, enum nl80211_dfs_state dfs_state) argument
626 struct cfg80211_chan_def chandef = {}; local
714 cfg80211_chandef_dfs_required(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef, enum nl80211_iftype iftype) argument
808 cfg80211_chandef_dfs_usable(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef) argument
850 cfg80211_is_sub_chan(struct cfg80211_chan_def *chandef, struct ieee80211_channel *chan, bool primary_only) argument
1052 cfg80211_chandef_dfs_available(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef) argument
1118 cfg80211_chandef_dfs_cac_time(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef) argument
1222 _cfg80211_chandef_usable(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef, u32 prohibited_flags, bool monitor) argument
1396 cfg80211_chandef_usable(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef, u32 prohibited_flags) argument
1520 _cfg80211_reg_can_beacon(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, enum nl80211_iftype iftype, bool check_no_ir) argument
1550 cfg80211_reg_can_beacon(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, enum nl80211_iftype iftype) argument
1558 cfg80211_reg_can_beacon_relax(struct wiphy *wiphy, struct cfg80211_chan_def *chandef, enum nl80211_iftype iftype) argument
1580 cfg80211_set_monitor_channel(struct cfg80211_registered_device *rdev, struct cfg80211_chan_def *chandef) argument
[all...]
H A Docb.c33 if (WARN_ON(!setup->chandef.chan))
38 wdev->u.ocb.chandef = setup->chandef;
57 if (!wdev->u.ocb.chandef.chan)
62 memset(&wdev->u.ocb.chandef, 0, sizeof(wdev->u.ocb.chandef));
H A Dmesh.c130 if (!setup->chandef.chan) {
132 setup->chandef = wdev->u.mesh.preset_chandef;
135 if (!setup->chandef.chan) {
154 setup->chandef.chan = chan;
158 if (setup->chandef.chan)
163 if (!setup->chandef.chan)
166 setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT;
167 setup->chandef.center_freq1 = setup->chandef.chan->center_freq;
176 rdev->wiphy.bands[setup->chandef
222 cfg80211_set_mesh_channel(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, struct cfg80211_chan_def *chandef) argument
[all...]
H A Dap.c37 memset(&wdev->links[link_id].ap.chandef, 0,
38 sizeof(wdev->links[link_id].ap.chandef));
/linux-master/net/mac80211/
H A Dwbrf.c41 static void get_ranges_from_chandef(struct cfg80211_chan_def *chandef, argument
48 bandwidth = nl80211_chan_width_to_mhz(chandef->width);
50 get_chan_freq_boundary(chandef->center_freq1, bandwidth, &start_freq1, &end_freq1);
56 if (chandef->width == NL80211_CHAN_WIDTH_80P80) {
57 get_chan_freq_boundary(chandef->center_freq2, bandwidth, &start_freq2, &end_freq2);
65 void ieee80211_add_wbrf(struct ieee80211_local *local, struct cfg80211_chan_def *chandef) argument
75 get_ranges_from_chandef(chandef, &ranges_in);
80 void ieee80211_remove_wbrf(struct ieee80211_local *local, struct cfg80211_chan_def *chandef) argument
90 get_ranges_from_chandef(chandef, &ranges_in);
H A Dspectmgmt.c24 struct cfg80211_chan_def *chandef)
28 u32 cf0 = ieee80211_channel_to_frequency(ccfs0, chandef->chan->band);
29 u32 cf1 = ieee80211_channel_to_frequency(ccfs1, chandef->chan->band);
34 chandef->width = NL80211_CHAN_WIDTH_160;
35 chandef->center_freq1 = cf0;
39 chandef->width = NL80211_CHAN_WIDTH_80P80;
40 chandef->center_freq1 = cf0;
41 chandef->center_freq2 = cf1;
44 chandef->width = NL80211_CHAN_WIDTH_80;
45 chandef
23 wbcs_elem_to_chandef(const struct ieee80211_wide_bw_chansw_ie *wbcs_elem, struct cfg80211_chan_def *chandef) argument
73 validate_chandef_by_ht_vht_oper(struct ieee80211_sub_if_data *sdata, struct ieee80211_conn_settings *conn, u32 vht_cap_info, struct cfg80211_chan_def *chandef) argument
143 validate_chandef_by_6ghz_he_eht_oper(struct ieee80211_sub_if_data *sdata, struct ieee80211_conn_settings *conn, struct cfg80211_chan_def *chandef) argument
[all...]
H A Dibss.c41 struct cfg80211_chan_def *chandef,
92 sband = local->hw.wiphy->bands[chandef->chan->band];
93 rate_flags = ieee80211_chandef_rate_flags(chandef);
130 chandef->chan->center_freq);
144 csa_settings->chandef.chan->center_freq);
172 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT &&
173 chandef->width != NL80211_CHAN_WIDTH_5 &&
174 chandef->width != NL80211_CHAN_WIDTH_10 &&
188 chandef, 0, false);
191 if (chandef
38 ieee80211_ibss_build_presp(struct ieee80211_sub_if_data *sdata, const int beacon_int, const u32 basic_rates, const u16 capability, u64 tsf, struct cfg80211_chan_def *chandef, bool *have_higher_than_11mbit, struct cfg80211_csa_settings *csa_settings) argument
390 struct cfg80211_chan_def chandef; local
1024 struct cfg80211_chan_def chandef; local
1358 ieee80211_ibss_setup_scan_channels(struct wiphy *wiphy, const struct cfg80211_chan_def *chandef, struct ieee80211_channel **channels, unsigned int channels_max) argument
[all...]
H A Dutil.c1197 struct cfg80211_chan_def *chandef,
1213 rate_flags = ieee80211_chandef_rate_flags(chandef);
1246 if (chandef->chan && sband->band == NL80211_BAND_2GHZ) {
1252 ieee80211_frequency_to_channel(chandef->chan->center_freq));
1385 struct cfg80211_chan_def *chandef,
1400 chandef, flags);
1428 struct cfg80211_chan_def *chandef,
1442 bands_used, rate_masks, chandef,
1478 struct cfg80211_chan_def chandef; local
1489 chandef
1191 ieee80211_put_preq_ies_band(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata, const u8 *ie, size_t ie_len, size_t *offset, enum nl80211_band band, u32 rate_mask, struct cfg80211_chan_def *chandef, u32 flags) argument
1380 ieee80211_put_preq_ies(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata, struct ieee80211_scan_ies *ie_desc, const u8 *ie, size_t ie_len, u8 bands_used, u32 *rate_masks, struct cfg80211_chan_def *chandef, u32 flags) argument
1423 ieee80211_build_preq_ies(struct ieee80211_sub_if_data *sdata, u8 *buffer, size_t buffer_len, struct ieee80211_scan_ies *ie_desc, const u8 *ie, size_t ie_len, u8 bands_used, u32 *rate_masks, struct cfg80211_chan_def *chandef, u32 flags) argument
2588 ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, const struct cfg80211_chan_def *chandef, u16 prot_mode, bool rifs_mode) argument
2636 ieee80211_ie_build_wide_bw_cs(u8 *pos, const struct cfg80211_chan_def *chandef) argument
2669 ieee80211_ie_build_vht_oper(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap, const struct cfg80211_chan_def *chandef) argument
2723 ieee80211_ie_build_he_oper(u8 *pos, struct cfg80211_chan_def *chandef) argument
2815 ieee80211_ie_build_eht_oper(u8 *pos, struct cfg80211_chan_def *chandef, const struct ieee80211_sta_eht_cap *eht_cap) argument
2886 ieee80211_chandef_ht_oper(const struct ieee80211_ht_operation *ht_oper, struct cfg80211_chan_def *chandef) argument
2912 ieee80211_chandef_vht_oper(struct ieee80211_hw *hw, u32 vht_cap_info, const struct ieee80211_vht_operation *oper, const struct ieee80211_ht_operation *htop, struct cfg80211_chan_def *chandef) argument
3036 ieee80211_chandef_eht_oper(const struct ieee80211_eht_operation_info *info, struct cfg80211_chan_def *chandef) argument
3069 ieee80211_chandef_he_6ghz_oper(struct ieee80211_local *local, const struct ieee80211_he_operation *he_oper, const struct ieee80211_eht_operation *eht_oper, struct cfg80211_chan_def *chandef) argument
3149 ieee80211_chandef_s1g_oper(const struct ieee80211_s1g_oper_ie *oper, struct cfg80211_chan_def *chandef) argument
3439 struct cfg80211_chan_def chandef; local
3467 struct cfg80211_chan_def chandef = local->hw.conf.chandef; local
3921 ieee80211_check_combinations(struct ieee80211_sub_if_data *sdata, const struct cfg80211_chan_def *chandef, enum ieee80211_chanctx_mode chanmode, u8 radar_detect) argument
4306 ieee80211_min_bw_limit_from_chandef(struct cfg80211_chan_def *chandef) argument
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dphy-ctxt.c12 u8 iwl_mvm_get_channel_width(const struct cfg80211_chan_def *chandef) argument
14 switch (chandef->width) {
27 WARN(1, "Invalid channel width=%u", chandef->width);
36 u8 iwl_mvm_get_ctrl_pos(const struct cfg80211_chan_def *chandef) argument
38 int offs = chandef->chan->center_freq - chandef->center_freq1;
119 const struct cfg80211_chan_def *chandef,
126 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef);
140 const struct cfg80211_chan_def *chandef,
144 chandef
116 iwl_mvm_phy_ctxt_cmd_data_v1(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, struct iwl_phy_context_cmd_v1 *cmd, const struct cfg80211_chan_def *chandef, u8 chains_static, u8 chains_dynamic) argument
137 iwl_mvm_phy_ctxt_cmd_data(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, struct iwl_phy_context_cmd *cmd, const struct cfg80211_chan_def *chandef, u8 chains_static, u8 chains_dynamic) argument
198 iwl_mvm_phy_ctxt_apply(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, const struct cfg80211_chan_def *chandef, const struct cfg80211_chan_def *ap, u8 chains_static, u8 chains_dynamic, u32 action) argument
268 iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, const struct cfg80211_chan_def *chandef, const struct cfg80211_chan_def *ap, u8 chains_static, u8 chains_dynamic) argument
315 iwl_mvm_phy_ctxt_changed(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, const struct cfg80211_chan_def *chandef, const struct cfg80211_chan_def *ap, u8 chains_static, u8 chains_dynamic) argument
362 struct cfg80211_chan_def chandef; local
[all...]
H A Dftm-responder.c26 static int iwl_mvm_ftm_responder_set_bw_v1(struct cfg80211_chan_def *chandef, argument
29 switch (chandef->width) {
38 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef);
42 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef);
51 static int iwl_mvm_ftm_responder_set_bw_v2(struct cfg80211_chan_def *chandef, argument
55 switch (chandef->width) {
67 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef);
72 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef);
78 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef);
110 struct cfg80211_chan_def *chandef,
108 iwl_mvm_ftm_responder_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct cfg80211_chan_def *chandef, struct ieee80211_bss_conf *link_conf) argument
[all...]
H A Dtdls.c333 struct cfg80211_chan_def *chandef,
375 if (!chandef) {
377 mvm->tdls_cs.peer.chandef.chan) {
379 chandef = &mvm->tdls_cs.peer.chandef;
391 chandef = &chanctx->def;
395 if (chandef)
396 iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, chandef);
486 &mvm->tdls_cs.peer.chandef,
504 struct cfg80211_chan_def *chandef,
328 iwl_mvm_tdls_config_channel_switch(struct iwl_mvm *mvm, struct ieee80211_vif *vif, enum iwl_tdls_channel_switch_type type, const u8 *peer, bool peer_initiator, u8 oper_class, struct cfg80211_chan_def *chandef, u32 timestamp, u16 switch_time, u16 switch_timeout, struct sk_buff *skb, u32 ch_sw_tm_ie) argument
501 iwl_mvm_tdls_channel_switch(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u8 oper_class, struct cfg80211_chan_def *chandef, struct sk_buff *tmpl_skb, u32 ch_sw_tm_ie) argument
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dmain.c12 mt76x0_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) argument
20 mt76x0_phy_set_channel(dev, chandef);
42 if (!cfg80211_chandef_valid(&mphy->chandef))
49 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan,
68 mt76x0_set_channel(dev, &hw->conf.chandef);
77 mphy->chandef.chan,
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_phy.h14 switch (dev->mphy.chandef.width) {
27 switch (dev->mphy.chandef.width) {
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A D11h.c113 struct cfg80211_chan_def chandef; local
119 chandef = priv->dfs_chandef;
123 cfg80211_cac_event(priv->netdev, &chandef,
145 cr_req->chan_desc.chan_num = radar_params->chandef->chan->hw_value;
146 cr_req->chan_desc.chan_width = radar_params->chandef->width;
152 radar_params->chandef->chan->hw_value);
160 struct cfg80211_chan_def *chandef)
165 radar_params.chandef = chandef;
159 mwifiex_stop_radar_detection(struct mwifiex_private *priv, struct cfg80211_chan_def *chandef) argument
/linux-master/drivers/net/wireless/quantenna/qtnfmac/
H A Devent.c142 struct cfg80211_chan_def chandef; local
172 qlink_chandef_q2cfg(wiphy, &join_info->chan, &chandef);
173 if (!cfg80211_chandef_valid(&chandef)) {
176 chandef.chan ? chandef.chan->center_freq : 0,
177 chandef.center_freq1,
178 chandef.center_freq2,
179 chandef.width);
184 bss = cfg80211_get_bss(wiphy, chandef.chan, join_info->bssid,
190 join_info->bssid, chandef
441 struct cfg80211_chan_def chandef; local
493 struct cfg80211_chan_def chandef; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dusb_main.c36 struct cfg80211_chan_def *chandef)
50 err = mt76x2u_phy_set_channel(dev, chandef);
85 mphy->chandef.chan,
98 err = mt76x2u_set_channel(dev, &hw->conf.chandef);
35 mt76x2u_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) argument
H A Dusb_phy.c13 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
61 struct cfg80211_chan_def *chandef)
86 struct ieee80211_channel *chan = chandef->chan;
91 freq = chandef->chan->center_freq;
92 freq1 = chandef->center_freq1;
94 switch (chandef->width) {
127 mt76x02_phy_set_bw(dev, chandef->width, ch_group_index);
188 chan = dev->mphy.chandef.chan;
60 mt76x2u_phy_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) argument
H A Dmt76x2u.h30 struct cfg80211_chan_def *chandef);
H A Dpci_main.c36 mt76x2_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) argument
48 mt76x2_phy_set_channel(dev, chandef);
85 mphy->chandef.chan,
100 mt76x2_set_channel(dev, &hw->conf.chandef);
H A Dpci_phy.c15 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
38 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
118 struct cfg80211_chan_def *chandef)
120 struct ieee80211_channel *chan = chandef->chan;
153 freq = chandef->chan->center_freq;
154 freq1 = chandef->center_freq1;
157 switch (chandef->width) {
190 mt76x02_phy_set_bw(dev, chandef->width, ch_group_index);
117 mt76x2_phy_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) argument
H A Dmt76x2.h33 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
54 struct cfg80211_chan_def *chandef);
H A Dphy.c139 enum nl80211_chan_width width = dev->mphy.chandef.width;
140 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
205 struct ieee80211_channel *chan = dev->mphy.chandef.chan;
255 dev->mphy.chandef.width >= NL80211_CHAN_WIDTH_40)
259 dev->mphy.chandef.chan->band == NL80211_BAND_2GHZ &&
260 dev->mphy.chandef.width < NL80211_CHAN_WIDTH_40)
270 if (dev->mphy.chandef.chan->flags & IEEE80211_CHAN_RADAR)
300 if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_80) {
318 if (dev->mphy.chandef.chan->band == NL80211_BAND_2GHZ)
322 else if (dev->mphy.chandef
[all...]
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dcommon.c301 struct cfg80211_chan_def *chandef)
303 struct ieee80211_channel *chan = chandef->chan;
312 switch (chandef->width) {
325 if (chandef->center_freq1 > chandef->chan->center_freq)
342 struct cfg80211_chan_def *chandef)
344 struct ieee80211_channel *curchan = chandef->chan;
348 ath9k_cmn_update_ichannel(channel, chandef);
300 ath9k_cmn_update_ichannel(struct ath9k_channel *ichan, struct cfg80211_chan_def *chandef) argument
340 ath9k_cmn_get_channel(struct ieee80211_hw *hw, struct ath_hw *ah, struct cfg80211_chan_def *chandef) argument
H A Dchannel.c29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; local
30 struct ieee80211_channel *chan = chandef->chan;
43 chan->center_freq, chandef->width);
50 ath9k_cmn_get_channel(hw, ah, chandef);
118 cfg80211_chandef_create(&ctx->chandef, chan, NL80211_CHAN_HT20);
131 struct cfg80211_chan_def *chandef)
137 if (chandef)
138 memcpy(&ctx->chandef, chandef, sizeo
130 ath_chanctx_set_channel(struct ath_softc *sc, struct ath_chanctx *ctx, struct cfg80211_chan_def *chandef) argument
801 ath_chanctx_switch(struct ath_softc *sc, struct ath_chanctx *ctx, struct cfg80211_chan_def *chandef) argument
852 struct cfg80211_chan_def chandef; local
[all...]
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Dchan.h83 const struct cfg80211_chan_def *chandef);
86 const struct cfg80211_chan_def *chandef);

Completed in 199 milliseconds

123456789