Commit b63f63c2 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau

mt76: mt7915: enable radar trigger on rdd2

Enable radar trigger for rdd2 in mt7915_radar_trigger.
Tested-by: default avatarEvelyn Tsai <evelyn.tsai@mediatek.com>
Tested-by: default avatarOwen Peng <owen.peng@mediatek.com>
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 39cdf080
...@@ -79,7 +79,11 @@ mt7915_radar_trigger(void *data, u64 val) ...@@ -79,7 +79,11 @@ mt7915_radar_trigger(void *data, u64 val)
{ {
struct mt7915_dev *dev = data; struct mt7915_dev *dev = data;
return mt76_connac_mcu_rdd_cmd(&dev->mt76, RDD_RADAR_EMULATE, 1, 0, 0); if (val > MT_RX_SEL2)
return -EINVAL;
return mt76_connac_mcu_rdd_cmd(&dev->mt76, RDD_RADAR_EMULATE,
val, 0, 0);
} }
DEFINE_DEBUGFS_ATTRIBUTE(fops_radar_trigger, NULL, DEFINE_DEBUGFS_ATTRIBUTE(fops_radar_trigger, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment