OpenWrt has recently added the "network" LED trigger to support routers
that have a single WLAN LED for multiple phys.
This patch replaces the temporary workaround used during initial
support, where the LED was triggered only by activity on a single phy.
With this change, the WLAN LED on the ipTIME AX3000SE now correctly
indicates activity on both `phy0` and `phy1`.
Signed-off-by: Donghyun Ko <nyankosoftware@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23723
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN;
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "network";
};
};
};
iptime,ax3000q)
ucidef_set_led_netdev "wan" "WAN" "amber:wan" "wan" "link tx rx"
;;
-iptime,ax3000se)
- ucidef_set_led_netdev "wlan" "WLAN" "blue:wlan" "phy1-ap0"
- ;;
iptime,ax3000sm)
ucidef_set_led_netdev "wan" "wan" "amber:wan" "eth1" "link tx rx"
;;
IMAGES := factory.bin sysupgrade.bin
IMAGE/factory.bin := sysupgrade-tar | append-metadata | check-size | iptime-crc32 ax3kse
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
- DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
+ DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-ledtrig-network
SUPPORTED_DEVICES += mediatek,mt7981-spim-snand-rfb
endef
TARGET_DEVICES += iptime_ax3000se