[openwrt/openwrt] mediatek-filogic: fix wax220 wifi leds

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 20 13:05:04 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/3f4c175851a5abb416f8d18eab20f98c014b8bf1

commit 3f4c175851a5abb416f8d18eab20f98c014b8bf1
Author: Florian Maurer <f.maurer at outlook.de>
AuthorDate: Thu Jan 16 09:29:55 2025 +0100

    mediatek-filogic: fix wax220 wifi leds
    
    The WAX220 does have a 2.4GHz and 5GHz wifi led, which was set to trigger on netdev before.
    This commit changes this to trigger on activity of the respective radio
    
    Signed-off-by: Florian Maurer <f.maurer at outlook.de>
    Link: https://github.com/openwrt/openwrt/pull/17627
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit 99431e315039d7f9689b21a8aa220adadf52a886)
---
 target/linux/mediatek/dts/mt7986b-netgear-wax220.dts         | 2 ++
 target/linux/mediatek/filogic/base-files/etc/board.d/01_leds | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts b/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
index 6e51d88470..9537afba89 100644
--- a/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
+++ b/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
@@ -67,6 +67,7 @@
 		wlan2g_blue {
 			gpios = <&pio 1 GPIO_ACTIVE_LOW>;
 			label = "blue:wlan2g";
+			linux,default-trigger = "phy0tpt";
 		};
 
 		lan_green {
@@ -84,6 +85,7 @@
 		wlan5g_blue {
 			gpios = <&pio 2 GPIO_ACTIVE_LOW>;
 			label = "blue:wlan5g";
+			linux,default-trigger = "phy1tpt";
 		};
 	};
 };
diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
index 168909cf90..5048e9bb8f 100644
--- a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
+++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
@@ -58,8 +58,6 @@ mercusys,mr90x-v1-ubi)
 	;;
 netgear,wax220)
 	ucidef_set_led_netdev "eth0" "LAN" "green:lan" "eth0"
-	ucidef_set_led_netdev "wlan2g" "WLAN2G" "blue:wlan2g" "phy0-ap0"
-	ucidef_set_led_netdev "wlan5g" "WLAN5G" "blue:wlan5g" "phy1-ap0"
 	;;
 nokia,ea0326gmp)
 	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1" "link"




More information about the lede-commits mailing list