| /drivers/net/wireless/intel/iwlwifi/mvm/ |
| A D | phy-ctxt.c | 14 switch (chandef->width) { in iwl_mvm_get_channel_width() 38 int offs = chandef->chan->center_freq - chandef->center_freq1; in iwl_mvm_get_ctrl_pos() 144 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data() 273 const struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_add() argument 283 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_add() 284 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_add() 333 ctxt->channel == chandef->chan && in iwl_mvm_phy_ctxt_changed() 334 ctxt->width == chandef->width && in iwl_mvm_phy_ctxt_changed() 355 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_changed() 356 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_changed() [all …]
|
| A D | ftm-responder.c | 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() 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 121 .channel_num = chandef->chan->hw_value, in iwl_mvm_ftm_responder_cmd() 136 iwl_mvm_phy_band_from_nl80211(chandef->chan->band); in iwl_mvm_ftm_responder_cmd() [all …]
|
| A D | tdls.c | 332 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() 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() 525 oper_class, chandef, 0, 0, 0, in iwl_mvm_tdls_channel_switch() [all …]
|
| /drivers/net/wireless/quantenna/qtnfmac/ |
| A D | event.c | 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() 458 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_freq_change() 459 chandef.width); in qtnf_event_handle_freq_change() 464 mac->macid, chandef.chan->hw_value, chandef.center_freq1, in qtnf_event_handle_freq_change() 465 chandef.center_freq2, chandef.width); in qtnf_event_handle_freq_change() 508 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_radar() 515 chandef.center_freq1, chandef.center_freq2, in qtnf_event_handle_radar() [all …]
|
| A D | cfg80211.c | 771 if (chandef && chan == chandef->chan) in qtnf_dump_survey() 795 ret = qtnf_cmd_get_channel(vif, chandef); in qtnf_get_channel() 802 if (!cfg80211_chandef_valid(chandef)) { in qtnf_get_channel() 804 ndev->name, chandef->chan->center_freq, in qtnf_get_channel() 805 chandef->center_freq1, chandef->center_freq2, in qtnf_get_channel() 806 chandef->width); in qtnf_get_channel() 822 params->chandef.chan->hw_value, params->count, in qtnf_channel_switch() 825 if (!cfg80211_chandef_valid(¶ms->chandef)) { in qtnf_channel_switch() 833 dev->name, params->chandef.chan->hw_value); in qtnf_channel_switch() 840 struct cfg80211_chan_def *chandef, in qtnf_start_radar_detection() argument [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mld/ |
| 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()
|
| A D | mlo.c | 661 const struct cfg80211_chan_def *chandef, in iwl_mld_get_emlsr_rssi_thresh() argument 665 chandef->chan->band != NL80211_BAND_5GHZ && in iwl_mld_get_emlsr_rssi_thresh() 666 chandef->chan->band != NL80211_BAND_6GHZ)) in iwl_mld_get_emlsr_rssi_thresh() 673 switch (chandef->width) { in iwl_mld_get_emlsr_rssi_thresh() 757 data[n_data].chandef = &link_conf->chanreq.oper; in iwl_mld_set_link_sel_data() 776 switch (phy->chandef.width) { in iwl_mld_get_min_chan_load_thresh() 826 if (a->chandef->width <= b->chandef->width) in iwl_mld_channel_load_allows_emlsr() 829 bw_a = cfg80211_chandef_get_width(a->chandef); in iwl_mld_channel_load_allows_emlsr() 830 bw_b = cfg80211_chandef_get_width(b->chandef); in iwl_mld_channel_load_allows_emlsr() 864 if (a->chandef->chan->band == b->chandef->chan->band) { in iwl_mld_emlsr_pair_state() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mld/tests/ |
| 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()
|
| /drivers/net/wireless/intel/iwlwifi/mvm/tests/ |
| A D | links.c | 76 .chandef = { 85 .chandef = { 94 .chandef = { 103 .chandef = { 113 .chandef = { 124 .chandef = { 134 .chandef = { 143 .chandef = { 152 .chandef = { 161 .chandef = { [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt76x2/ |
| A 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()
|
| A 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()
|
| A 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()
|
| /drivers/net/wireless/ath/ath9k/ |
| A D | channel.c | 29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; in ath_set_channel() local 43 chan->center_freq, chandef->width); in ath_set_channel() 137 if (chandef) in ath_chanctx_set_channel() 138 memcpy(&ctx->chandef, chandef, sizeof(*chandef)); in ath_chanctx_set_channel() 805 if (chandef) in ath_chanctx_switch() 806 ctx->chandef = *chandef; in ath_chanctx_switch() 821 if (chandef) { in ath_chanctx_switch() 822 ctx->chandef = *chandef; in ath_chanctx_switch() 832 if (chandef) { in ath_chanctx_switch() 835 chandef->center_freq1, in ath_chanctx_switch() [all …]
|
| A D | common.c | 302 struct cfg80211_chan_def *chandef) in ath9k_cmn_update_ichannel() argument 304 struct ieee80211_channel *chan = chandef->chan; in ath9k_cmn_update_ichannel() 313 switch (chandef->width) { in ath9k_cmn_update_ichannel() 326 if (chandef->center_freq1 > chandef->chan->center_freq) in ath9k_cmn_update_ichannel() 343 struct cfg80211_chan_def *chandef) in ath9k_cmn_get_channel() argument 345 struct ieee80211_channel *curchan = chandef->chan; in ath9k_cmn_get_channel() 349 ath9k_cmn_update_ichannel(channel, chandef); in ath9k_cmn_get_channel()
|
| /drivers/net/wireless/marvell/mwifiex/ |
| 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()
|
| /drivers/net/wireless/mediatek/mt76/mt7603/ |
| A D | mcu.c | 353 .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()
|
| /drivers/net/wireless/mediatek/mt76/mt76x0/ |
| 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()
|
| A D | phy.c | 914 struct cfg80211_chan_def *chandef) in mt76x0_phy_set_channel() argument 944 freq = chandef->chan->center_freq; in mt76x0_phy_set_channel() 945 freq1 = chandef->center_freq1; in mt76x0_phy_set_channel() 946 channel = chandef->chan->hw_value; in mt76x0_phy_set_channel() 949 switch (chandef->width) { in mt76x0_phy_set_channel() 972 mt76x0_phy_bbp_set_bw(dev, chandef->width); in mt76x0_phy_set_channel() 974 if (chandef->width == NL80211_CHAN_WIDTH_80 || in mt76x0_phy_set_channel() 975 chandef->width == NL80211_CHAN_WIDTH_40) in mt76x0_phy_set_channel() 982 mt76x02_phy_set_band(dev, chandef->chan->band, in mt76x0_phy_set_channel() 993 mt76x0_phy_set_band(dev, chandef->chan->band); in mt76x0_phy_set_channel() [all …]
|
| A 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/mediatek/mt76/mt7915/ |
| A D | testmode.c | 42 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_tm_set_tx_power() local 43 int freq = chandef->center_freq1; in mt7915_tm_set_tx_power() 274 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7915_tm_set_tx_len() 276 else if (mphy->chandef.chan->band == NL80211_BAND_6GHZ) in mt7915_tm_set_tx_len() 308 switch (mphy->chandef.width) { in mt7915_tm_set_tx_len() 517 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_tm_set_tx_cont() local 518 int freq1 = ieee80211_frequency_to_channel(chandef->center_freq1); in mt7915_tm_set_tx_cont() 531 tx_cont->control_ch = chandef->chan->hw_value; in mt7915_tm_set_tx_cont() 536 switch (chandef->width) { in mt7915_tm_set_tx_cont() 574 if (chandef->chan->band == NL80211_BAND_5GHZ) in mt7915_tm_set_tx_cont() [all …]
|
| A D | mcu.c | 532 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_bss_rfch_tlv() local 535 int freq1 = chandef->center_freq1; in mt7915_mcu_bss_rfch_tlv() 545 int freq2 = chandef->center_freq2; in mt7915_mcu_bss_rfch_tlv() 636 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_bss_bmc_tlv() local 1455 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; in mt7915_mcu_add_rate_ctrl_fixed() local 1545 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_mcu_sta_rate_ctrl_tlv() local 1954 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; in mt7915_mcu_add_inband_discov() local 2718 req.band = chandef ? chandef->chan->band == NL80211_BAND_5GHZ : 1; in mt7915_mcu_background_chain_ctrl() 2772 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_set_chan_info() local 2773 int freq1 = chandef->center_freq1; in mt7915_mcu_set_chan_info() [all …]
|
| /drivers/net/wireless/realtek/rtl8xxxu/ |
| 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() 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() 626 if (hw->conf.chandef.width == NL80211_CHAN_WIDTH_20 || in rtl8188fu_config_channel() [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7615/ |
| A D | mcu.c | 2109 return width_to_bw[chandef->width]; in mt7615_mcu_chan_bw() 2115 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_set_chan_info() local 2116 int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2; in mt7615_mcu_set_chan_info() 2155 req.bw = mt7615_mcu_chan_bw(chandef); in mt7615_mcu_set_chan_info() 2296 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_apply_rx_dcoc() local 2297 int freq2 = chandef->center_freq2; in mt7615_mcu_apply_rx_dcoc() 2323 .bw = mt7615_mcu_chan_bw(chandef), in mt7615_mcu_apply_rx_dcoc() 2324 .band = chandef->center_freq1 > 4000, in mt7615_mcu_apply_rx_dcoc() 2411 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_apply_tx_dpd() local 2412 int freq2 = chandef->center_freq2; in mt7615_mcu_apply_tx_dpd() [all …]
|
| /drivers/net/wireless/ralink/rt2x00/ |
| 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()
|
| /drivers/net/wireless/mediatek/mt76/mt7921/ |
| A D | mcu.c | 866 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7921_mcu_set_chan_info() local 867 int freq1 = chandef->center_freq1; in mt7921_mcu_set_chan_info() 886 .control_ch = chandef->chan->hw_value, in mt7921_mcu_set_chan_info() 888 .bw = mt76_connac_chan_bw(chandef), in mt7921_mcu_set_chan_info() 894 if (chandef->chan->band == NL80211_BAND_6GHZ) in mt7921_mcu_set_chan_info() 897 req.channel_band = chandef->chan->band; in mt7921_mcu_set_chan_info() 914 int freq2 = chandef->center_freq2; in mt7921_mcu_set_chan_info() 1165 int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2; in mt7921_mcu_config_sniffer() 1207 .control_ch = chandef->chan->hw_value, in mt7921_mcu_config_sniffer() 1214 if (chandef->width < ARRAY_SIZE(ch_width)) in mt7921_mcu_config_sniffer() [all …]
|