mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: report radar pattern if detected by rdd2
Report radar pattern to mac80211 if detected by the offchannel chain. Tested-by: Evelyn Tsai <[email protected]> Tested-by: Owen Peng <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
4c76a6c3a1
commit
5b94045f92
+6
-1
@@ -358,7 +358,12 @@ mt7915_mcu_rx_radar_detected(struct mt7915_dev *dev, struct sk_buff *skb)
|
||||
if (r->band_idx && dev->mt76.phy2)
|
||||
mphy = dev->mt76.phy2;
|
||||
|
||||
ieee80211_radar_detected(mphy->hw);
|
||||
if (r->band_idx == MT_RX_SEL2)
|
||||
cfg80211_background_radar_event(mphy->hw->wiphy,
|
||||
&dev->rdd2_chandef,
|
||||
GFP_ATOMIC);
|
||||
else
|
||||
ieee80211_radar_detected(mphy->hw);
|
||||
dev->hw_pattern++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user