Lines Matching refs:chandef

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()
2300 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_apply_rx_dcoc() local
2301 int freq2 = chandef->center_freq2; in mt7615_mcu_apply_rx_dcoc()
2327 .bw = mt7615_mcu_chan_bw(chandef), in mt7615_mcu_apply_rx_dcoc()
2328 .band = chandef->center_freq1 > 4000, in mt7615_mcu_apply_rx_dcoc()
2331 u16 center_freq = chandef->center_freq1; in mt7615_mcu_apply_rx_dcoc()
2338 if (chandef->width == NL80211_CHAN_WIDTH_160) { in mt7615_mcu_apply_rx_dcoc()
2345 freq_idx = mt7615_dcoc_freq_idx(center_freq, chandef->width); in mt7615_mcu_apply_rx_dcoc()
2359 if ((chandef->width == NL80211_CHAN_WIDTH_80P80 || in mt7615_mcu_apply_rx_dcoc()
2360 chandef->width == NL80211_CHAN_WIDTH_160) && !req.is_freq2) { in mt7615_mcu_apply_rx_dcoc()
2415 struct cfg80211_chan_def *chandef = &phy->mt76->chandef; in mt7615_mcu_apply_tx_dpd() local
2416 int freq2 = chandef->center_freq2; in mt7615_mcu_apply_tx_dpd()
2448 .bw = mt7615_mcu_chan_bw(chandef), in mt7615_mcu_apply_tx_dpd()
2449 .band = chandef->center_freq1 > 4000, in mt7615_mcu_apply_tx_dpd()
2452 u16 center_freq = chandef->center_freq1; in mt7615_mcu_apply_tx_dpd()
2459 if (chandef->width == NL80211_CHAN_WIDTH_160) { in mt7615_mcu_apply_tx_dpd()
2466 freq_idx = mt7615_dpd_freq_idx(center_freq, chandef->width); in mt7615_mcu_apply_tx_dpd()
2480 if ((chandef->width == NL80211_CHAN_WIDTH_80P80 || in mt7615_mcu_apply_tx_dpd()
2481 chandef->width == NL80211_CHAN_WIDTH_160) && !req.is_freq2) { in mt7615_mcu_apply_tx_dpd()