| /freebsd-head/sys/contrib/dev/iwlwifi/mvm/ |
| HD | phy-ctxt.c | 12 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 …]
|
| HD | ftm-responder.c | 26 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 …]
|
| HD | tdls.c | 335 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_config_channel_switch() argument 377 if (!chandef) { in iwl_mvm_tdls_config_channel_switch() 379 mvm->tdls_cs.peer.chandef.chan) { in iwl_mvm_tdls_config_channel_switch() 381 chandef = &mvm->tdls_cs.peer.chandef; in iwl_mvm_tdls_config_channel_switch() 393 chandef = &chanctx->def; in iwl_mvm_tdls_config_channel_switch() 397 if (chandef) in iwl_mvm_tdls_config_channel_switch() 398 iwl_mvm_set_chan_info_chandef(mvm, &cmd.ci, chandef); in iwl_mvm_tdls_config_channel_switch() 488 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work() 504 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_channel_switch() argument 515 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch() [all …]
|
| HD | link.c | 640 data[n_data].chandef = &link_conf->chanreq.oper; in iwl_mvm_set_link_selection_data() 666 const struct cfg80211_chan_def *chandef, in iwl_mvm_get_esr_rssi_thresh() argument 677 u8 chan_width = iwl_mvm_get_channel_width(chandef); in iwl_mvm_get_esr_rssi_thresh() 679 if (WARN_ON(chandef->chan->band != NL80211_BAND_2GHZ && in iwl_mvm_get_esr_rssi_thresh() 680 chandef->chan->band != NL80211_BAND_5GHZ && in iwl_mvm_get_esr_rssi_thresh() 681 chandef->chan->band != NL80211_BAND_6GHZ)) in iwl_mvm_get_esr_rssi_thresh() 709 if (link->chandef->chan->band == NL80211_BAND_2GHZ && in iwl_mvm_esr_disallowed_with_link() 714 thresh = iwl_mvm_get_esr_rssi_thresh(mvm, link->chandef, in iwl_mvm_esr_disallowed_with_link() 746 if (a->chandef->width != b->chandef->width || in iwl_mvm_mld_valid_link_pair() 747 !(a->chandef->chan->band == NL80211_BAND_6GHZ && in iwl_mvm_mld_valid_link_pair() [all …]
|
| HD | ftm-initiator.c | 327 u32 freq = peer->chandef.chan->center_freq; in iwl_mvm_ftm_target_chandef_v1() 331 switch (peer->chandef.width) { in iwl_mvm_ftm_target_chandef_v1() 346 peer->chandef.width); in iwl_mvm_ftm_target_chandef_v1() 350 *ctrl_ch_position = (peer->chandef.width > NL80211_CHAN_WIDTH_20) ? in iwl_mvm_ftm_target_chandef_v1() 351 iwl_mvm_get_ctrl_pos(&peer->chandef) : 0; in iwl_mvm_ftm_target_chandef_v1() 362 u32 freq = peer->chandef.chan->center_freq; in iwl_mvm_ftm_target_chandef_v2() 367 switch (peer->chandef.width) { in iwl_mvm_ftm_target_chandef_v2() 397 peer->chandef.width); in iwl_mvm_ftm_target_chandef_v2() 405 *ctrl_ch_position = (peer->chandef.width > NL80211_CHAN_WIDTH_20) ? in iwl_mvm_ftm_target_chandef_v2() 406 iwl_mvm_get_ctrl_pos(&peer->chandef) : 0; in iwl_mvm_ftm_target_chandef_v2() [all …]
|
| /freebsd-head/sys/contrib/dev/mediatek/mt76/mt76x2/ |
| HD | 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()
|
| HD | 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()
|
| HD | 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()
|
| HD | mt76x2.h | 33 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_channel_silent() 56 struct cfg80211_chan_def *chandef);
|
| HD | usb_main.c | 42 err = mt76x2u_phy_set_channel(dev, &mphy->chandef); in mt76x2u_set_channel() 73 mphy->chandef.chan, in mt76x2u_config()
|
| HD | pci_main.c | 43 mt76x2_phy_set_channel(dev, &phy->chandef); in mt76x2e_set_channel() 77 mphy->chandef.chan, in mt76x2_config()
|
| HD | init.c | 19 if (!cfg80211_chandef_valid(&mphy->chandef)) in mt76x2_set_sar_specs() 26 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan, in mt76x2_set_sar_specs()
|
| /freebsd-head/sys/contrib/dev/mediatek/mt76/mt7603/ |
| HD | 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()
|
| /freebsd-head/sys/contrib/dev/mediatek/mt76/mt7915/ |
| HD | 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 …]
|
| HD | mcu.c | 63 enum nl80211_band band = msta->vif->phy->mt76->chandef.chan->band; in mt7915_mcu_set_sta_he_mcs() 511 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_bss_rfch_tlv() local 514 int freq1 = chandef->center_freq1; in mt7915_mcu_bss_rfch_tlv() 519 ch->pri_ch = chandef->chan->hw_value; in mt7915_mcu_bss_rfch_tlv() 521 ch->bw = mt76_connac_chan_bw(chandef); in mt7915_mcu_bss_rfch_tlv() 523 if (chandef->width == NL80211_CHAN_WIDTH_80P80) { in mt7915_mcu_bss_rfch_tlv() 524 int freq2 = chandef->center_freq2; in mt7915_mcu_bss_rfch_tlv() 615 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_bss_bmc_tlv() local 616 enum nl80211_band band = chandef->chan->band; in mt7915_mcu_bss_bmc_tlv() 1434 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; in mt7915_mcu_add_rate_ctrl_fixed() local [all …]
|
| /freebsd-head/sys/contrib/dev/mediatek/mt76/ |
| HD | scan.c | 79 struct cfg80211_chan_def chandef = {}; in mt76_scan_work() local 96 cfg80211_chandef_create(&chandef, dev->scan.chan, NL80211_CHAN_HT20); in mt76_scan_work() 97 mt76_set_channel(phy, &chandef, true); in mt76_scan_work() 100 chandef.chan->flags & (IEEE80211_CHAN_NO_IR | IEEE80211_CHAN_RADAR)) in mt76_scan_work()
|
| HD | 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()
|
| HD | mac80211.c | 424 cfg80211_chandef_create(&phy->chandef, &sband->channels[0], in mt76_check_sband() 1012 int __mt76_set_channel(struct mt76_phy *phy, struct cfg80211_chan_def *chandef, in __mt76_set_channel() argument 1025 if (phy->chandef.chan->center_freq != chandef->chan->center_freq || in __mt76_set_channel() 1026 phy->chandef.width != chandef->width) in __mt76_set_channel() 1029 phy->chandef = *chandef; in __mt76_set_channel() 1030 phy->chan_state = mt76_channel_state(phy, chandef->chan); in __mt76_set_channel() 1034 phy->main_chandef = *chandef; in __mt76_set_channel() 1036 if (chandef->chan != phy->main_chandef.chan) in __mt76_set_channel() 1048 int mt76_set_channel(struct mt76_phy *phy, struct cfg80211_chan_def *chandef, in mt76_set_channel() argument 1057 ret = __mt76_set_channel(phy, chandef, offchannel); in mt76_set_channel() [all …]
|
| HD | mt76_connac.h | 278 static inline u8 mt76_connac_chan_bw(struct cfg80211_chan_def *chandef) in mt76_connac_chan_bw() argument 292 if (chandef->width >= ARRAY_SIZE(width_to_bw)) in mt76_connac_chan_bw() 295 return width_to_bw[chandef->width]; in mt76_connac_chan_bw()
|
| /freebsd-head/sys/contrib/dev/mediatek/mt76/mt7615/ |
| HD | mcu.c | 2073 tx_power = mt76_get_sar_power(mphy, mphy->chandef.chan, tx_power); in mt7615_mcu_set_txpower_sku() 2075 tx_power = mt76_get_rate_power_limits(mphy, mphy->chandef.chan, in mt7615_mcu_set_txpower_sku() 2097 static u8 mt7615_mcu_chan_bw(struct cfg80211_chan_def *chandef) in mt7615_mcu_chan_bw() argument 2110 if (chandef->width >= ARRAY_SIZE(width_to_bw)) in mt7615_mcu_chan_bw() 2113 return width_to_bw[chandef->width]; in mt7615_mcu_chan_bw() 2119 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_set_chan_info() local 2120 int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2; in mt7615_mcu_set_chan_info() 2140 .control_chan = chandef->chan->hw_value, in mt7615_mcu_set_chan_info() 2152 else if (!cfg80211_reg_can_beacon(phy->mt76->hw->wiphy, chandef, in mt7615_mcu_set_chan_info() 2159 req.bw = mt7615_mcu_chan_bw(chandef); in mt7615_mcu_set_chan_info() [all …]
|
| HD | 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()
|
| /freebsd-head/sys/contrib/dev/mediatek/mt76/mt7996/ |
| HD | mcu.c | 125 enum nl80211_band band = msta->vif->deflink.phy->mt76->chandef.chan->band; in mt7996_mcu_set_sta_he_mcs() 781 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7996_mcu_bss_rfch_tlv() local 784 int freq1 = chandef->center_freq1; in mt7996_mcu_bss_rfch_tlv() 789 ch->control_channel = chandef->chan->hw_value; in mt7996_mcu_bss_rfch_tlv() 791 ch->bw = mt76_connac_chan_bw(chandef); in mt7996_mcu_bss_rfch_tlv() 794 ch->band = rlm_ch_band[chandef->chan->band]; in mt7996_mcu_bss_rfch_tlv() 796 if (chandef->width == NL80211_CHAN_WIDTH_80P80) { in mt7996_mcu_bss_rfch_tlv() 797 int freq2 = chandef->center_freq2; in mt7996_mcu_bss_rfch_tlv() 870 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7996_mcu_bss_bmc_tlv() local 871 enum nl80211_band band = chandef->chan->band; in mt7996_mcu_bss_bmc_tlv() [all …]
|
| /freebsd-head/sys/compat/linuxkpi/common/include/net/ |
| HD | cfg80211.h | 325 struct cfg80211_chan_def chandef; member 464 struct cfg80211_chan_def chandef; member 521 struct cfg80211_chan_def chandef; member 1529 cfg80211_chandef_create(struct cfg80211_chan_def *chandef, in cfg80211_chandef_create() argument 1533 KASSERT(chandef != NULL, ("%s: chandef is NULL\n", __func__)); in cfg80211_chandef_create() 1537 chandef->chan = chan; in cfg80211_chandef_create() 1538 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create() 1543 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in cfg80211_chandef_create() 1546 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create() 1549 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create() [all …]
|
| /freebsd-head/sys/contrib/dev/mediatek/mt76/mt7921/ |
| HD | mcu.c | 875 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7921_mcu_set_chan_info() local 876 int freq1 = chandef->center_freq1; in mt7921_mcu_set_chan_info() 895 .control_ch = chandef->chan->hw_value, in mt7921_mcu_set_chan_info() 897 .bw = mt76_connac_chan_bw(chandef), in mt7921_mcu_set_chan_info() 903 if (chandef->chan->band == NL80211_BAND_6GHZ) in mt7921_mcu_set_chan_info() 906 req.channel_band = chandef->chan->band; in mt7921_mcu_set_chan_info() 913 else if (!cfg80211_reg_can_beacon(dev->mt76.hw->wiphy, chandef, in mt7921_mcu_set_chan_info() 922 if (chandef->width == NL80211_CHAN_WIDTH_80P80) { in mt7921_mcu_set_chan_info() 923 int freq2 = chandef->center_freq2; in mt7921_mcu_set_chan_info() 1173 struct cfg80211_chan_def *chandef = &ctx->def; in mt7921_mcu_config_sniffer() local [all …]
|
| /freebsd-head/sys/contrib/dev/rtw89/ |
| HD | chan.h | 96 const struct cfg80211_chan_def *chandef); 99 const struct cfg80211_chan_def *chandef);
|