| From c521ab8836a3e1a4e4f71896e364802c3cf2d6e7 Mon Sep 17 00:00:00 2001 |
| From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| Date: Wed, 17 May 2023 17:34:55 +0800 |
| Subject: [PATCH 04/15] wifi: mt76: mt7915: get rid of false alamrs of tx |
| emission issues |
| |
| When mt7915_mcu_set_chan_info() is set with CH_SWITCH_NORMAL reason, |
| even if the action is UNI_CHANNEL_RX_PATH, it'll still generate some |
| unexpected tones, which might confuse DFS CAC tests that there are some |
| tone leakages. To get rid of these kinds of false alarms, always bypass |
| DPD calibration when IEEE80211_CONF_IDLE is set. |
| |
| Reviewed-by: Evelyn Tsai <evelyn.tsai@mediatek.com> |
| Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| --- |
| mt7915/mcu.c | 6 +++--- |
| 1 file changed, 3 insertions(+), 3 deletions(-) |
| |
| diff --git a/mt7915/mcu.c b/mt7915/mcu.c |
| index 74fafedb..9ee65fa5 100644 |
| --- a/mt7915/mcu.c |
| +++ b/mt7915/mcu.c |
| @@ -2742,10 +2742,10 @@ int mt7915_mcu_set_chan_info(struct mt7915_phy *phy, int cmd) |
| if (mt76_connac_spe_idx(phy->mt76->antenna_mask)) |
| req.tx_path_num = fls(phy->mt76->antenna_mask); |
| |
| - if (cmd == MCU_EXT_CMD(SET_RX_PATH) || |
| - dev->mt76.hw->conf.flags & IEEE80211_CONF_MONITOR) |
| + if (dev->mt76.hw->conf.flags & IEEE80211_CONF_MONITOR) |
| req.switch_reason = CH_SWITCH_NORMAL; |
| - else if (phy->mt76->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL) |
| + else if (phy->mt76->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL || |
| + phy->mt76->hw->conf.flags & IEEE80211_CONF_IDLE) |
| req.switch_reason = CH_SWITCH_SCAN_BYPASS_DPD; |
| else if (!cfg80211_reg_can_beacon(phy->mt76->hw->wiphy, chandef, |
| NL80211_IFTYPE_AP)) |
| -- |
| 2.39.2 |
| |