OSDN Git Service

wifi: mt76: mt7915: fix background radar event being blocked
authorStanleyYP Wang <StanleyYP.Wang@mediatek.com>
Tue, 9 May 2023 03:11:57 +0000 (11:11 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 25 Jul 2023 19:59:40 +0000 (21:59 +0200)
The background radar uses MT_RX_SEL2 as its band indication, so fix it.

Fixes: 7a53eecd5c87 (wifi: mt76: mt7915: check the correctness of event data)
Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c

index 9fcb22f..088a065 100644 (file)
@@ -274,7 +274,7 @@ mt7915_mcu_rx_radar_detected(struct mt7915_dev *dev, struct sk_buff *skb)
 
        r = (struct mt7915_mcu_rdd_report *)skb->data;
 
-       if (r->band_idx > MT_BAND1)
+       if (r->band_idx > MT_RX_SEL2)
                return;
 
        if ((r->band_idx && !dev->phy.mt76->band_idx) &&