/drivers/net/wireless/iwlwifi/mvm/ |
D | phy-ctxt.c | 71 u8 iwl_mvm_get_channel_width(struct cfg80211_chan_def *chandef) in iwl_mvm_get_channel_width() argument 73 switch (chandef->width) { in iwl_mvm_get_channel_width() 84 WARN(1, "Invalid channel width=%u", chandef->width); in iwl_mvm_get_channel_width() 93 u8 iwl_mvm_get_ctrl_pos(struct cfg80211_chan_def *chandef) in iwl_mvm_get_ctrl_pos() argument 95 switch (chandef->chan->center_freq - chandef->center_freq1) { in iwl_mvm_get_ctrl_pos() 144 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data() argument 150 cmd->ci.band = (chandef->chan->band == IEEE80211_BAND_2GHZ ? in iwl_mvm_phy_ctxt_cmd_data() 153 cmd->ci.channel = chandef->chan->hw_value; in iwl_mvm_phy_ctxt_cmd_data() 154 cmd->ci.width = iwl_mvm_get_channel_width(chandef); in iwl_mvm_phy_ctxt_cmd_data() 155 cmd->ci.ctrl_pos = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_phy_ctxt_cmd_data() [all …]
|
D | tdls.c | 387 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_config_channel_switch() argument 426 if (!chandef) { in iwl_mvm_tdls_config_channel_switch() 428 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch() 430 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch() 442 chandef = &chanctx->def; in iwl_mvm_tdls_config_channel_switch() 446 if (chandef) { in iwl_mvm_tdls_config_channel_switch() 447 cmd.ci.band = (chandef->chan->band == IEEE80211_BAND_2GHZ ? in iwl_mvm_tdls_config_channel_switch() 449 cmd.ci.channel = chandef->chan->hw_value; in iwl_mvm_tdls_config_channel_switch() 450 cmd.ci.width = iwl_mvm_get_channel_width(chandef); in iwl_mvm_tdls_config_channel_switch() 451 cmd.ci.ctrl_pos = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_tdls_config_channel_switch() [all …]
|
D | mvm.h | 834 struct cfg80211_chan_def chandef; member 1125 struct cfg80211_chan_def *chandef, 1128 struct cfg80211_chan_def *chandef, 1135 u8 iwl_mvm_get_channel_width(struct cfg80211_chan_def *chandef); 1136 u8 iwl_mvm_get_ctrl_pos(struct cfg80211_chan_def *chandef); 1460 struct cfg80211_chan_def *chandef,
|
/drivers/net/wireless/ath/ath9k/ |
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() 42 chan->center_freq, chandef->width); in ath_set_channel() 49 ath9k_cmn_get_channel(hw, ah, chandef); in ath_set_channel() 117 cfg80211_chandef_create(&ctx->chandef, chan, NL80211_CHAN_HT20); in ath_chanctx_init() 127 struct cfg80211_chan_def *chandef) in ath_chanctx_set_channel() argument 133 if (chandef) in ath_chanctx_set_channel() 134 memcpy(&ctx->chandef, chandef, sizeof(*chandef)); in ath_chanctx_set_channel() 491 sc->cur_chan->chandef.center_freq1, in ath_chanctx_event() 781 struct cfg80211_chan_def *chandef) in ath_chanctx_switch() argument [all …]
|
D | common.c | 300 struct cfg80211_chan_def *chandef) in ath9k_cmn_update_ichannel() argument 302 struct ieee80211_channel *chan = chandef->chan; in ath9k_cmn_update_ichannel() 311 switch (chandef->width) { in ath9k_cmn_update_ichannel() 324 if (chandef->center_freq1 > chandef->chan->center_freq) in ath9k_cmn_update_ichannel() 341 struct cfg80211_chan_def *chandef) in ath9k_cmn_get_channel() argument 343 struct ieee80211_channel *curchan = chandef->chan; in ath9k_cmn_get_channel() 347 ath9k_cmn_update_ichannel(channel, chandef); in ath9k_cmn_get_channel()
|
D | common.h | 85 struct cfg80211_chan_def *chandef);
|
/drivers/net/wireless/mwifiex/ |
D | 11h.c | 125 struct cfg80211_chan_def chandef; in mwifiex_dfs_cac_work_queue() local 135 chandef = priv->dfs_chandef; in mwifiex_dfs_cac_work_queue() 139 cfg80211_cac_event(priv->netdev, &chandef, in mwifiex_dfs_cac_work_queue() 160 cr_req->chan_desc.chan_num = radar_params->chandef->chan->hw_value; in mwifiex_cmd_issue_chan_report_request() 161 cr_req->chan_desc.chan_width = radar_params->chandef->width; in mwifiex_cmd_issue_chan_report_request() 167 radar_params->chandef->chan->hw_value); in mwifiex_cmd_issue_chan_report_request() 175 struct cfg80211_chan_def *chandef) in mwifiex_stop_radar_detection() argument 180 radar_params.chandef = chandef; in mwifiex_stop_radar_detection()
|
D | uap_cmd.c | 816 struct cfg80211_chan_def chandef) in mwifiex_uap_set_channel() argument 820 priv->bss_chandef = chandef; in mwifiex_uap_set_channel() 823 chandef.chan->center_freq); in mwifiex_uap_set_channel() 826 if (chandef.chan->band == IEEE80211_BAND_2GHZ) { in mwifiex_uap_set_channel() 830 if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT) in mwifiex_uap_set_channel() 836 if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT) in mwifiex_uap_set_channel() 839 if (chandef.width > NL80211_CHAN_WIDTH_40) in mwifiex_uap_set_channel()
|
D | cfg80211.c | 1894 mwifiex_uap_set_channel(priv, bss_cfg, params->chandef); in mwifiex_cfg80211_start_ap() 1908 mwifiex_set_vht_width(priv, params->chandef.width, in mwifiex_cfg80211_start_ap() 1923 !cfg80211_chandef_dfs_required(wiphy, ¶ms->chandef, in mwifiex_cfg80211_start_ap() 2269 if (params->chandef.chan->band == IEEE80211_BAND_2GHZ) { in mwifiex_set_ibss_params() 2294 if (cfg80211_get_chandef_type(¶ms->chandef) != in mwifiex_set_ibss_params() 2298 if (cfg80211_get_chandef_type(¶ms->chandef) == in mwifiex_set_ibss_params() 2317 cfg80211_get_chandef_type(¶ms->chandef)); in mwifiex_set_ibss_params() 2319 params->chandef.chan->center_freq); in mwifiex_set_ibss_params() 2357 params->chandef.chan, NULL, in mwifiex_cfg80211_join_ibss() 2362 params->chandef.chan, GFP_KERNEL); in mwifiex_cfg80211_join_ibss() [all …]
|
/drivers/net/wireless/orinoco/ |
D | cfg.c | 165 struct cfg80211_chan_def *chandef) in orinoco_set_monitor_channel() argument 172 if (!chandef->chan) in orinoco_set_monitor_channel() 175 if (cfg80211_get_chandef_type(chandef) != NL80211_CHAN_NO_HT) in orinoco_set_monitor_channel() 178 if (chandef->chan->band != IEEE80211_BAND_2GHZ) in orinoco_set_monitor_channel() 181 channel = ieee80211_frequency_to_channel(chandef->chan->center_freq); in orinoco_set_monitor_channel()
|
/drivers/net/wireless/ath/wcn36xx/ |
D | wcn36xx.h | 87 #define WCN36XX_HW_CHANNEL(__wcn) (__wcn->hw->conf.chandef.chan->hw_value) 88 #define WCN36XX_BAND(__wcn) (__wcn->hw->conf.chandef.chan->band) 89 #define WCN36XX_CENTER_FREQ(__wcn) (__wcn->hw->conf.chandef.chan->center_freq) 92 #define WCN36XX_MAX_POWER(__wcn) (__wcn->hw->conf.chandef.chan->max_power)
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00config.c | 185 center_channel = spec->channels[conf->chandef.chan->hw_value].channel; in rt2x00ht_center_channel() 200 return conf->chandef.chan->hw_value; in rt2x00ht_center_channel() 228 hw_value = conf->chandef.chan->hw_value; in rt2x00lib_config() 280 rt2x00dev->curr_band = conf->chandef.chan->band; in rt2x00lib_config() 281 rt2x00dev->curr_freq = conf->chandef.chan->center_freq; in rt2x00lib_config()
|
/drivers/staging/vt6655/ |
D | dpc.c | 68 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data() 106 rx_status.band = hw->conf.chandef.chan->band; in vnt_rx_data() 109 rx_status.freq = hw->conf.chandef.chan->center_freq; in vnt_rx_data()
|
/drivers/staging/vt6656/ |
D | dpc.c | 100 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data() 156 rx_status.band = hw->conf.chandef.chan->band; in vnt_rx_data() 159 rx_status.freq = hw->conf.chandef.chan->center_freq; in vnt_rx_data()
|
/drivers/net/wireless/ti/wl18xx/ |
D | cmd.c | 46 cmd->channel = ch_switch->chandef.chan->hw_value; in wl18xx_cmd_channel_switch() 50 switch (ch_switch->chandef.chan->band) { in wl18xx_cmd_channel_switch() 59 ch_switch->chandef.chan->band); in wl18xx_cmd_channel_switch()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | phy.c | 349 struct cfg80211_chan_def *chandef) in __mt7601u_phy_set_channel() argument 377 struct ieee80211_channel *chan = chandef->chan; in __mt7601u_phy_set_channel() 379 cfg80211_get_chandef_type(chandef); in __mt7601u_phy_set_channel() 390 if (chandef->width == NL80211_CHAN_WIDTH_40) { in __mt7601u_phy_set_channel() 443 dev->chandef = *chandef; in __mt7601u_phy_set_channel() 449 struct cfg80211_chan_def *chandef) in mt7601u_phy_set_channel() argument 457 ret = __mt7601u_phy_set_channel(dev, chandef); in mt7601u_phy_set_channel() 779 return dev->ee->chan_pwr[dev->chandef.chan->hw_value - 1]; in mt7601u_current_tx_power() 906 if (dev->chandef.chan->hw_value < 5) in mt7601u_tssi_cal() 908 else if (dev->chandef.chan->hw_value < 9) in mt7601u_tssi_cal()
|
D | mt7601u.h | 166 struct cfg80211_chan_def chandef; member 354 struct cfg80211_chan_def *chandef);
|
/drivers/net/wireless/ath/carl9170/ |
D | mac.c | 51 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_2GHZ) in carl9170_set_dyn_sifs_ack() 69 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_2GHZ) { in carl9170_set_rts_cts_rate() 96 if ((ar->hw->conf.chandef.chan->band == IEEE80211_BAND_5GHZ) || in carl9170_set_slot_time() 123 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_5GHZ) in carl9170_set_mac_rates()
|
/drivers/net/wireless/libertas/ |
D | cfg.c | 445 struct cfg80211_chan_def *chandef) in lbs_cfg_set_monitor_channel() argument 451 chandef->chan->center_freq, in lbs_cfg_set_monitor_channel() 452 cfg80211_get_chandef_type(chandef)); in lbs_cfg_set_monitor_channel() 454 if (cfg80211_get_chandef_type(chandef) != NL80211_CHAN_NO_HT) in lbs_cfg_set_monitor_channel() 457 ret = lbs_set_channel(priv, chandef->chan->hw_value); in lbs_cfg_set_monitor_channel() 1736 *fake++ = params->chandef.chan->hw_value; in lbs_join_post() 1757 params->chandef.chan, in lbs_join_post() 1770 cfg80211_ibss_joined(priv->dev, bssid, params->chandef.chan, in lbs_join_post() 1840 cmd.bss.ds.channel = params->chandef.chan->hw_value; in lbs_ibss_join_existing() 1957 cmd.ds.channel = params->chandef.chan->hw_value; in lbs_ibss_start_new() [all …]
|
/drivers/net/wireless/b43/ |
D | phy_common.c | 105 if (!phy->chandef) { in b43_phy_init() 106 phy->chandef = &dev->wl->hw->conf.chandef; in b43_phy_init() 107 phy->channel = phy->chandef->chan->hw_value; in b43_phy_init() 572 return dev->phy.chandef->width == NL80211_CHAN_WIDTH_40; in b43_is_40mhz()
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | devices.c | 424 ch = ch_switch->chandef.chan->hw_value; in iwl5000_hw_channel_switch() 460 ch_switch->chandef.chan->flags & IEEE80211_CHAN_RADAR; in iwl5000_hw_channel_switch() 592 ch = ch_switch->chandef.chan->hw_value; in iwl6000_hw_channel_switch() 628 ch_switch->chandef.chan->flags & IEEE80211_CHAN_RADAR; in iwl6000_hw_channel_switch()
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | rc.c | 233 struct cfg80211_chan_def *chandef, in rtl_rate_init() argument 240 struct cfg80211_chan_def *chandef, in rtl_rate_update() argument
|
/drivers/net/wireless/libertas_tf/ |
D | main.c | 415 if (conf->chandef.chan->center_freq != priv->cur_freq) { in lbtf_op_config() 416 priv->cur_freq = conf->chandef.chan->center_freq; in lbtf_op_config() 417 lbtf_set_channel(priv, conf->chandef.chan->hw_value); in lbtf_op_config() 537 survey->channel = conf->chandef.chan; in lbtf_op_get_survey()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | trx.c | 329 rx_status->freq = hw->conf.chandef.chan->center_freq; in rtl92cu_rx_query_desc() 330 rx_status->band = hw->conf.chandef.chan->band; in rtl92cu_rx_query_desc() 398 rx_status->freq = hw->conf.chandef.chan->center_freq; in _rtl_rx_process() 399 rx_status->band = hw->conf.chandef.chan->band; in _rtl_rx_process()
|
/drivers/net/wireless/ath/ath5k/ |
D | base.h | 104 int ath5k_chan_set(struct ath5k_hw *ah, struct cfg80211_chan_def *chandef);
|