/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | phy-ctxt.c | 69 u8 iwl_mvm_get_channel_width(struct cfg80211_chan_def *chandef) in iwl_mvm_get_channel_width() argument 71 switch (chandef->width) { in iwl_mvm_get_channel_width() 82 WARN(1, "Invalid channel width=%u", chandef->width); in iwl_mvm_get_channel_width() 91 u8 iwl_mvm_get_ctrl_pos(struct cfg80211_chan_def *chandef) in iwl_mvm_get_ctrl_pos() argument 93 switch (chandef->chan->center_freq - chandef->center_freq1) { in iwl_mvm_get_ctrl_pos() 174 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data_v1() argument 181 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data_v1() 194 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_cmd_data() argument 198 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data() 201 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data() [all …]
|
D | ftm-responder.c | 77 static int iwl_mvm_ftm_responder_set_bw_v1(struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_set_bw_v1() argument 80 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v1() 89 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1() 93 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1() 102 static int iwl_mvm_ftm_responder_set_bw_v2(struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_set_bw_v2() argument 106 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v2() 118 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 123 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 135 struct cfg80211_chan_def *chandef) in iwl_mvm_ftm_responder_cmd() argument 144 .channel_num = chandef->chan->hw_value, in iwl_mvm_ftm_responder_cmd() [all …]
|
D | tdls.c | 388 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_config_channel_switch() argument 430 if (!chandef) { in iwl_mvm_tdls_config_channel_switch() 432 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch() 434 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch() 446 chandef = &chanctx->def; in iwl_mvm_tdls_config_channel_switch() 450 if (chandef) in iwl_mvm_tdls_config_channel_switch() 451 iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, chandef); in iwl_mvm_tdls_config_channel_switch() 541 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work() 559 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_channel_switch() argument 570 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | event.c | 142 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() 213 bss = cfg80211_inform_bss(wiphy, chandef.chan, in qtnf_event_handle_bss_join() [all …]
|
D | cfg80211.c | 756 const struct cfg80211_chan_def *chandef = &wdev->chandef; in qtnf_dump_survey() local 776 if (chan == chandef->chan) in qtnf_dump_survey() 789 struct cfg80211_chan_def *chandef) in qtnf_get_channel() argument 800 ret = qtnf_cmd_get_channel(vif, chandef); in qtnf_get_channel() 807 if (!cfg80211_chandef_valid(chandef)) { in qtnf_get_channel() 809 ndev->name, chandef->chan->center_freq, in qtnf_get_channel() 810 chandef->center_freq1, chandef->center_freq2, in qtnf_get_channel() 811 chandef->width); in qtnf_get_channel() 827 params->chandef.chan->hw_value, params->count, in qtnf_channel_switch() 830 if (!cfg80211_chandef_valid(¶ms->chandef)) { in qtnf_channel_switch() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt76x2/ |
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()
|
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()
|
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()
|
D | usb_main.c | 36 struct cfg80211_chan_def *chandef) in mt76x2u_set_channel() argument 50 err = mt76x2u_phy_set_channel(dev, chandef); in mt76x2u_set_channel() 94 err = mt76x2u_set_channel(dev, &hw->conf.chandef); in mt76x2u_config()
|
D | pci_main.c | 36 mt76x2_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) in mt76x2_set_channel() argument 48 mt76x2_phy_set_channel(dev, chandef); in mt76x2_set_channel() 96 mt76x2_set_channel(dev, &hw->conf.chandef); in mt76x2_config()
|
/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() 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 …]
|
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()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | 11h.c | 125 struct cfg80211_chan_def chandef; in mwifiex_dfs_cac_work_queue() local 131 chandef = priv->dfs_chandef; in mwifiex_dfs_cac_work_queue() 135 cfg80211_cac_event(priv->netdev, &chandef, in mwifiex_dfs_cac_work_queue() 157 cr_req->chan_desc.chan_num = radar_params->chandef->chan->hw_value; in mwifiex_cmd_issue_chan_report_request() 158 cr_req->chan_desc.chan_width = radar_params->chandef->width; in mwifiex_cmd_issue_chan_report_request() 164 radar_params->chandef->chan->hw_value); in mwifiex_cmd_issue_chan_report_request() 172 struct cfg80211_chan_def *chandef) in mwifiex_stop_radar_detection() argument 177 radar_params.chandef = chandef; in mwifiex_stop_radar_detection()
|
D | uap_cmd.c | 825 struct cfg80211_chan_def chandef) in mwifiex_uap_set_channel() argument 829 priv->bss_chandef = chandef; in mwifiex_uap_set_channel() 832 chandef.chan->center_freq); in mwifiex_uap_set_channel() 835 if (chandef.chan->band == NL80211_BAND_2GHZ) { in mwifiex_uap_set_channel() 839 if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT) in mwifiex_uap_set_channel() 845 if (chandef.width > NL80211_CHAN_WIDTH_20_NOHT) in mwifiex_uap_set_channel() 848 if (chandef.width > NL80211_CHAN_WIDTH_40) in mwifiex_uap_set_channel() 852 switch (chandef.width) { in mwifiex_uap_set_channel() 859 if (chandef.center_freq1 < chandef.chan->center_freq) in mwifiex_uap_set_channel() 873 chandef.width); in mwifiex_uap_set_channel()
|
/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | phy.c | 505 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_tssi_dc_calibrate() 546 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_tssi_adc_calibrate() 699 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_get_delta_power() 847 mt76x0_get_tx_power_per_rate(dev, dev->mphy.chandef.chan, t); in mt76x0_phy_set_txpower() 848 mt76x0_get_power_info(dev, dev->mphy.chandef.chan, &info); in mt76x0_phy_set_txpower() 861 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_phy_calibrate() 912 struct cfg80211_chan_def *chandef) in mt76x0_phy_set_channel() argument 942 freq = chandef->chan->center_freq; in mt76x0_phy_set_channel() 943 freq1 = chandef->center_freq1; in mt76x0_phy_set_channel() 944 channel = chandef->chan->hw_value; in mt76x0_phy_set_channel() [all …]
|
D | main.c | 12 mt76x0_set_channel(struct mt76x02_dev *dev, struct cfg80211_chan_def *chandef) in mt76x0_set_channel() argument 20 mt76x0_phy_set_channel(dev, chandef); in mt76x0_set_channel() 42 mt76x0_set_channel(dev, &hw->conf.chandef); in mt76x0_config()
|
D | eeprom.c | 112 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x0_read_rx_gain() 132 struct cfg80211_chan_def *chandef = &dev->mphy.chandef; in mt76x0_get_delta() local 135 if (chandef->width == NL80211_CHAN_WIDTH_80) { in mt76x0_get_delta() 137 } else if (chandef->width == NL80211_CHAN_WIDTH_40) { in mt76x0_get_delta() 141 if (chandef->chan->band == NL80211_BAND_5GHZ) in mt76x0_get_delta()
|
/drivers/net/wireless/intersil/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 != NL80211_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/mediatek/mt76/mt7603/ |
D | mcu.c | 400 .center_channel = dev->mphy.chandef.chan->hw_value, in mt7603_mcu_set_tx_power() 433 struct cfg80211_chan_def *chandef = &dev->mphy.chandef; in mt7603_mcu_set_channel() local 446 .control_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel() 447 .center_chan = chandef->chan->hw_value, in mt7603_mcu_set_channel() 455 if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_40) { in mt7603_mcu_set_channel() 457 if (chandef->center_freq1 > chandef->chan->center_freq) in mt7603_mcu_set_channel()
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00config.c | 174 center_channel = spec->channels[conf->chandef.chan->hw_value].channel; in rt2x00ht_center_channel() 189 return conf->chandef.chan->hw_value; in rt2x00ht_center_channel() 217 hw_value = conf->chandef.chan->hw_value; in rt2x00lib_config() 251 rt2x00dev->curr_band = conf->chandef.chan->band; in rt2x00lib_config() 252 rt2x00dev->curr_freq = conf->chandef.chan->center_freq; in rt2x00lib_config()
|
/drivers/net/wireless/ath/wcn36xx/ |
D | wcn36xx.h | 90 HW_VALUE_CHANNEL(__wcn->hw->conf.chandef.chan->hw_value) 91 #define WCN36XX_BAND(__wcn) (__wcn->hw->conf.chandef.chan->band) 92 #define WCN36XX_CENTER_FREQ(__wcn) (__wcn->hw->conf.chandef.chan->center_freq) 95 #define WCN36XX_MAX_POWER(__wcn) (__wcn->hw->conf.chandef.chan->max_power)
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_phy.h | 14 switch (dev->mphy.chandef.width) { in mt76x02_get_rssi_gain_thresh() 27 switch (dev->mphy.chandef.width) { in mt76x02_get_low_rssi_gain_thresh()
|
/drivers/staging/vt6655/ |
D | dpc.c | 54 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data() 91 rx_status.band = hw->conf.chandef.chan->band; in vnt_rx_data() 94 rx_status.freq = hw->conf.chandef.chan->center_freq; in vnt_rx_data()
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mcu.c | 121 static u8 mt7915_mcu_chan_bw(struct cfg80211_chan_def *chandef) in mt7915_mcu_chan_bw() argument 134 if (chandef->width >= ARRAY_SIZE(width_to_bw)) in mt7915_mcu_chan_bw() 137 return width_to_bw[chandef->width]; in mt7915_mcu_chan_bw() 146 band = phy->mt76->chandef.chan->band; in mt7915_get_he_phy_cap() 435 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7915_mcu_tx_rate_cal() 487 u8 bw = mt7915_mcu_chan_bw(&mphy->chandef) - in mt7915_mcu_tx_rate_cal() 732 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_bss_basic_tlv() local 733 enum nl80211_band band = chandef->chan->band; in mt7915_mcu_bss_basic_tlv() 846 if (!(vif->bss_conf.chandef.chan->flags & IEEE80211_CHAN_RADAR)) in mt7915_check_he_obss_narrow_bw_ru() 849 cfg80211_bss_iter(hw->wiphy, &vif->bss_conf.chandef, in mt7915_check_he_obss_narrow_bw_ru() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | testmode.c | 53 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7615_tm_set_tx_power() local 54 int freq = chandef->center_freq1, len, target_chains; in mt7615_tm_set_tx_power() 56 enum nl80211_band band = chandef->chan->band; in mt7615_tm_set_tx_power() 83 ret = mt7615_eeprom_get_target_power_index(dev, chandef->chan, i); in mt7615_tm_set_tx_power()
|