Hi, I'm currently working on adding OpenWrt support for a new device, the ipTIME AX3000SE. I'm almost ready to send a pull request, but I've run into an issue with the WLAN LED.
This router has a single LED for all WLAN activity, unlike other routers.
I was trying to set a configuration for WLAN on dts file:
leds {
compatible = "gpio-leds";
...
/* LED GPIO configuration for WLAN */
led-1 {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN;
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
};
...
};
However, this only triggers the LED for phy1-ap0 activity. Setting this in LuCI produces the same result.
Is there a way to trigger the LED for activity on both phy0 and phy1? Or does OpenWrt not support this feature? (I was assuming this because I saw this article: Multiple devices/ports status - single LED)
Also I can see the logs that the ledtrig_network handles phy0 and phy1:
// During boot process
[ 3.166853] ledtrig_network: LED blue:wlan - trigger wlan attached
// These two logs show up when enabling phy0-ap0 and phy1-ap0
[ 463.694613] ledtrig_network: wlan - interface phy0-ap0 registered
[ 484.914116] ledtrig_network: wlan - interface phy1-ap0 registered
// The router prints these two messages when disabling phy0-ap0 and phy1-ap0
[ 499.927820] ledtrig_network: wlan - interface phy0-ap0 unregistered
[ 506.716187] ledtrig_network: wlan - interface phy1-ap0 unregistered
I'll just leave it as a known limitation while sending the pull request, and apply the fix later after the ledtrig_network patch is merged. And one more question, are you the one who created the pull request for this patch? If so, please let me know if you need other tests. I would be happy to help test the patch further.