| /freebsd-14.2/sys/contrib/dev/iwlwifi/mvm/ |
| H 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() 155 chandef->chan->band)); in iwl_mvm_phy_ctxt_cmd_data() 265 struct cfg80211_chan_def *chandef, in iwl_mvm_phy_ctxt_add() argument 272 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_add() 273 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_add() 305 ctxt->channel == chandef->chan && in iwl_mvm_phy_ctxt_changed() 306 ctxt->width == chandef->width && in iwl_mvm_phy_ctxt_changed() 327 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_changed() 328 ctxt->width = chandef->width; in iwl_mvm_phy_ctxt_changed() [all …]
|
| H A D | ftm-responder.c | 26 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v1() 35 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1() 39 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v1() 52 switch (chandef->width) { in iwl_mvm_ftm_responder_set_bw_v2() 64 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 69 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 75 *ctrl_ch_position = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_ftm_responder_set_bw_v2() 107 struct cfg80211_chan_def *chandef, in iwl_mvm_ftm_responder_cmd() argument 118 .channel_num = chandef->chan->hw_value, in iwl_mvm_ftm_responder_cmd() 151 err = iwl_mvm_ftm_responder_set_bw_v2(chandef, &cmd.format_bw, in iwl_mvm_ftm_responder_cmd() [all …]
|
| H A D | 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() 488 &mvm->tdls_cs.peer.chandef, in iwl_mvm_tdls_ch_switch_work() 506 struct cfg80211_chan_def *chandef, in iwl_mvm_tdls_channel_switch() argument 517 sta->addr, chandef->chan->center_freq, chandef->width); in iwl_mvm_tdls_channel_switch() 531 oper_class, chandef, 0, 0, 0, in iwl_mvm_tdls_channel_switch() [all …]
|
| H A D | ftm-initiator.c | 319 u32 freq = peer->chandef.chan->center_freq; in iwl_mvm_ftm_target_chandef_v1() 323 switch (peer->chandef.width) { in iwl_mvm_ftm_target_chandef_v1() 338 peer->chandef.width); in iwl_mvm_ftm_target_chandef_v1() 342 *ctrl_ch_position = (peer->chandef.width > NL80211_CHAN_WIDTH_20) ? in iwl_mvm_ftm_target_chandef_v1() 343 iwl_mvm_get_ctrl_pos(&peer->chandef) : 0; in iwl_mvm_ftm_target_chandef_v1() 354 u32 freq = peer->chandef.chan->center_freq; in iwl_mvm_ftm_target_chandef_v2() 359 switch (peer->chandef.width) { in iwl_mvm_ftm_target_chandef_v2() 389 peer->chandef.width); in iwl_mvm_ftm_target_chandef_v2() 397 *ctrl_ch_position = (peer->chandef.width > NL80211_CHAN_WIDTH_20) ? in iwl_mvm_ftm_target_chandef_v2() 398 iwl_mvm_get_ctrl_pos(&peer->chandef) : 0; in iwl_mvm_ftm_target_chandef_v2() [all …]
|
| /freebsd-14.2/sys/contrib/dev/rtw89/ |
| H A D | chan.c | 126 const struct cfg80211_chan_def *chandef, in __rtw89_config_entity_chandef() argument 131 hal->sub[idx].chandef = *chandef; in __rtw89_config_entity_chandef() 139 const struct cfg80211_chan_def *chandef) in rtw89_config_entity_chandef() argument 141 __rtw89_config_entity_chandef(rtwdev, idx, chandef, true); in rtw89_config_entity_chandef() 146 const struct cfg80211_chan_def *chandef) in rtw89_config_roc_chandef() argument 151 if (chandef) { in rtw89_config_roc_chandef() 160 hal->roc_chandef = *chandef; in rtw89_config_roc_chandef() 178 struct cfg80211_chan_def chandef = {0}; in rtw89_config_default_chandef() local 180 rtw89_get_default_chandef(&chandef); in rtw89_config_default_chandef() 181 __rtw89_config_entity_chandef(rtwdev, RTW89_SUB_ENTITY_0, &chandef, false); in rtw89_config_default_chandef()
|
| H A D | chan.h | 47 const struct cfg80211_chan_def *chandef); 50 const struct cfg80211_chan_def *chandef);
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt76x2/ |
| H 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()
|
| H 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()
|
| H 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()
|
| H A 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() 85 mphy->chandef.chan, in mt76x2u_config() 98 err = mt76x2u_set_channel(dev, &hw->conf.chandef); in mt76x2u_config()
|
| H A 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() 85 mphy->chandef.chan, in mt76x2_config() 100 mt76x2_set_channel(dev, &hw->conf.chandef); in mt76x2_config()
|
| H A D | mt76x2.h | 33 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2_channel_silent() 54 struct cfg80211_chan_def *chandef);
|
| H A D | 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()
|
| H A D | mt76x2u.h | 30 struct cfg80211_chan_def *chandef);
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7603/ |
| H 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()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/net/ |
| H A D | cfg80211.h | 321 struct cfg80211_chan_def chandef; member 460 struct cfg80211_chan_def chandef; member 517 struct cfg80211_chan_def chandef; member 1468 memset(chandef, 0, sizeof(*chandef)); in cfg80211_chandef_create() 1469 chandef->chan = chan; in cfg80211_chandef_create() 1475 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create() 1480 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create() 1482 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create() 1484 chandef->width = NL80211_CHAN_WIDTH_80; in cfg80211_chandef_create() 1486 chandef->width = NL80211_CHAN_WIDTH_160; in cfg80211_chandef_create() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7921/ |
| H A D | mcu.c | 688 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7921_mcu_set_chan_info() local 689 int freq1 = chandef->center_freq1; in mt7921_mcu_set_chan_info() 708 .control_ch = chandef->chan->hw_value, in mt7921_mcu_set_chan_info() 710 .bw = mt76_connac_chan_bw(chandef), in mt7921_mcu_set_chan_info() 716 if (chandef->chan->band == NL80211_BAND_6GHZ) in mt7921_mcu_set_chan_info() 719 req.channel_band = chandef->chan->band; in mt7921_mcu_set_chan_info() 736 int freq2 = chandef->center_freq2; in mt7921_mcu_set_chan_info() 987 int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2; in mt7921_mcu_config_sniffer() 1029 .control_ch = chandef->chan->hw_value, in mt7921_mcu_config_sniffer() 1036 if (chandef->width < ARRAY_SIZE(ch_width)) in mt7921_mcu_config_sniffer() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H 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() 515 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_tm_set_tx_cont() local 516 int freq1 = ieee80211_frequency_to_channel(chandef->center_freq1); in mt7915_tm_set_tx_cont() 529 tx_cont->control_ch = chandef->chan->hw_value; in mt7915_tm_set_tx_cont() 534 switch (chandef->width) { in mt7915_tm_set_tx_cont() 572 if (chandef->chan->band == NL80211_BAND_5GHZ) in mt7915_tm_set_tx_cont() [all …]
|
| H A D | mcu.c | 484 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_bss_rfch_tlv() local 487 int freq1 = chandef->center_freq1; in mt7915_mcu_bss_rfch_tlv() 497 int freq2 = chandef->center_freq2; in mt7915_mcu_bss_rfch_tlv() 588 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_bss_bmc_tlv() local 1401 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; in mt7915_mcu_add_rate_ctrl_fixed() local 1491 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_mcu_sta_rate_ctrl_tlv() local 1901 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; in mt7915_mcu_beacon_inband_discov() local 2641 req.band = chandef ? chandef->chan->band == NL80211_BAND_5GHZ : 1; in mt7915_mcu_background_chain_ctrl() 2693 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7915_mcu_set_chan_info() local 2694 int freq1 = chandef->center_freq1; in mt7915_mcu_set_chan_info() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/ |
| H A 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()
|
| H A D | mac80211.c | 416 phy->chandef.chan = &sband->channels[0]; in mt76_check_sband() 941 struct cfg80211_chan_def *chandef = &hw->conf.chandef; in mt76_set_channel() local 948 if (phy->chandef.chan->center_freq != chandef->chan->center_freq || in mt76_set_channel() 949 phy->chandef.width != chandef->width) in mt76_set_channel() 952 phy->chandef = *chandef; in mt76_set_channel() 953 phy->chan_state = mt76_channel_state(phy, chandef->chan); in mt76_set_channel() 956 phy->main_chan = chandef->chan; in mt76_set_channel() 958 if (chandef->chan != phy->main_chan) in mt76_set_channel() 1739 if (phy->chandef.chan->band != NL80211_BAND_2GHZ) in mt76_calculate_default_rate() 1816 (phy->chandef.chan->flags & IEEE80211_CHAN_RADAR)) in mt76_phy_dfs_state() [all …]
|
| H A D | mt76_connac.h | 256 static inline u8 mt76_connac_chan_bw(struct cfg80211_chan_def *chandef) in mt76_connac_chan_bw() argument 270 if (chandef->width >= ARRAY_SIZE(width_to_bw)) in mt76_connac_chan_bw() 273 return width_to_bw[chandef->width]; in mt76_connac_chan_bw()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mcu.c | 553 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7996_mcu_bss_rfch_tlv() local 556 int freq1 = chandef->center_freq1; in mt7996_mcu_bss_rfch_tlv() 569 int freq2 = chandef->center_freq2; in mt7996_mcu_bss_rfch_tlv() 622 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7996_mcu_bss_bmc_tlv() local 757 struct cfg80211_chan_def *chandef = &phy->chandef; in mt7996_mcu_bss_basic_tlv() local 820 chandef->chan->band, NULL); in mt7996_mcu_bss_basic_tlv() 822 chandef->chan->band); in mt7996_mcu_bss_basic_tlv() 1646 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7996_mcu_sta_rate_ctrl_tlv() local 2094 struct cfg80211_chan_def *chandef = &mvif->phy->mt76->chandef; in mt7996_mcu_beacon_inband_discov() local 2895 req.band = chandef ? chandef->chan->band == NL80211_BAND_5GHZ : 1; in mt7996_mcu_background_chain_ctrl() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7615/ |
| H A D | mcu.c | 2119 return width_to_bw[chandef->width]; in mt7615_mcu_chan_bw() 2125 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_set_chan_info() local 2126 int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2; in mt7615_mcu_set_chan_info() 2165 req.bw = mt7615_mcu_chan_bw(chandef); in mt7615_mcu_set_chan_info() 2306 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_apply_rx_dcoc() local 2307 int freq2 = chandef->center_freq2; in mt7615_mcu_apply_rx_dcoc() 2333 .bw = mt7615_mcu_chan_bw(chandef), in mt7615_mcu_apply_rx_dcoc() 2334 .band = chandef->center_freq1 > 4000, in mt7615_mcu_apply_rx_dcoc() 2421 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_apply_tx_dpd() local 2422 int freq2 = chandef->center_freq2; in mt7615_mcu_apply_tx_dpd() [all …]
|
| H A 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()
|