Lines Matching defs:chandef

2079 	tx_power = mt76_get_sar_power(mphy, mphy->chandef.chan, tx_power);
2081 tx_power = mt76_get_rate_power_limits(mphy, mphy->chandef.chan,
2103 static u8 mt7615_mcu_chan_bw(struct cfg80211_chan_def *chandef)
2116 if (chandef->width >= ARRAY_SIZE(width_to_bw))
2119 return width_to_bw[chandef->width];
2125 struct cfg80211_chan_def *chandef = &phy->mt76->chandef;
2126 int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2;
2146 .control_chan = chandef->chan->hw_value,
2158 else if (!cfg80211_reg_can_beacon(phy->mt76->hw->wiphy, chandef,
2165 req.bw = mt7615_mcu_chan_bw(chandef);
2306 struct cfg80211_chan_def *chandef = &phy->mt76->chandef;
2307 int freq2 = chandef->center_freq2;
2333 .bw = mt7615_mcu_chan_bw(chandef),
2334 .band = chandef->center_freq1 > 4000,
2337 u16 center_freq = chandef->center_freq1;
2344 if (chandef->width == NL80211_CHAN_WIDTH_160) {
2351 freq_idx = mt7615_dcoc_freq_idx(center_freq, chandef->width);
2365 if ((chandef->width == NL80211_CHAN_WIDTH_80P80 ||
2366 chandef->width == NL80211_CHAN_WIDTH_160) && !req.is_freq2) {
2421 struct cfg80211_chan_def *chandef = &phy->mt76->chandef;
2422 int freq2 = chandef->center_freq2;
2454 .bw = mt7615_mcu_chan_bw(chandef),
2455 .band = chandef->center_freq1 > 4000,
2458 u16 center_freq = chandef->center_freq1;
2465 if (chandef->width == NL80211_CHAN_WIDTH_160) {
2472 freq_idx = mt7615_dpd_freq_idx(center_freq, chandef->width);
2486 if ((chandef->width == NL80211_CHAN_WIDTH_80P80 ||
2487 chandef->width == NL80211_CHAN_WIDTH_160) && !req.is_freq2) {