[openwrt/openwrt] mediatek: disable unsupported background radar detection

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 11 16:16:32 PDT 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/60384d8a743666f8cbda6446b86067ef6246d032

commit 60384d8a743666f8cbda6446b86067ef6246d032
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Wed Sep 7 16:08:33 2022 +0800

    mediatek: disable unsupported background radar detection
    
    MT7915 requires an additional antenna for background radar scanning.
    Disable this feature in the following devices that do not have a
    separate DFS antenna:
      linksys,e8450
      ruijie,rg-ew3200gx-pro
      xiaomi,redmi-router-ax6s
    
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
 target/linux/mediatek/dts/mt7622-linksys-e8450.dtsi           | 4 +++-
 target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts   | 4 +++-
 target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts | 1 +
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7622-linksys-e8450.dtsi b/target/linux/mediatek/dts/mt7622-linksys-e8450.dtsi
index 9f0dabdb4e..1fe839575e 100644
--- a/target/linux/mediatek/dts/mt7622-linksys-e8450.dtsi
+++ b/target/linux/mediatek/dts/mt7622-linksys-e8450.dtsi
@@ -336,9 +336,11 @@
 };
 
 &slot0 {
-	wmac1: mt7915 at 0,0 {
+	wmac1: wifi at 0,0 {
+		compatible = "mediatek,mt76";
 		reg = <0x0000 0 0 0 0>;
 		ieee80211-freq-limit = <5000000 6000000>;
+		mediatek,disable-radar-background;
 	};
 };
 
diff --git a/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts b/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts
index df8f2a5814..fba9a1b8f7 100644
--- a/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts
+++ b/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts
@@ -164,10 +164,12 @@
 };
 
 &slot0 {
-	mt7915 at 0,0 {
+	wifi at 0,0 {
+		compatible = "mediatek,mt76";
 		reg = <0x0000 0 0 0 0>;
 		mediatek,mtd-eeprom = <&factory 0x5000>;
 		ieee80211-freq-limit = <5000000 6000000>;
+		mediatek,disable-radar-background;
 	};
 };
 
diff --git a/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts b/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts
index 6c1208d4a8..73ee41bb2d 100644
--- a/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts
+++ b/target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts
@@ -328,6 +328,7 @@
 		reg = <0x0000 0 0 0 0>;
 		mediatek,mtd-eeprom = <&factory 0x5000>;
 		ieee80211-freq-limit = <5000000 6000000>;
+		mediatek,disable-radar-background;
 	};
 };
 




More information about the lede-commits mailing list