From 7fbd9938d99b812354ef5ce690818dff53bcf7c2 Mon Sep 17 00:00:00 2001 From: Stefan Lippers-Hollmann Date: Thu, 28 Jun 2018 14:04:46 +0200 Subject: [PATCH] ipq806x: switch the NBG6817 wlan LEDs from amber to white The original device support patch configured the amber wlan LEDs (which are meant as error indicator by the OEM) controlled by the SOC's GPIO as wlan traffic indicators, as the correct white wlan LEDs are connected to GPIOs controlled by the QCA9984/ ath10k wlan cards were not accessible. The recent addition of GPIO/ LED support to ath10k now makes it possible to use the correct white LEDs instead - and "mac80211: ath10k: use tpt LED trigger by default" also enables them by default. While both LEDs are independent of each other (two separate LEDs sharing one light tunnel), triggering both on wlan traffic is not the intended behaviour (bright yellow light). Tested on the ZyXEL NBG6817. Signed-off-by: Stefan Lippers-Hollmann (backported from 7c7ca66109468b57f06d20eafbb9523aecc91706) --- target/linux/ipq806x/base-files/etc/board.d/01_leds | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/linux/ipq806x/base-files/etc/board.d/01_leds b/target/linux/ipq806x/base-files/etc/board.d/01_leds index fea4d7c8bb..769afb8b85 100755 --- a/target/linux/ipq806x/base-files/etc/board.d/01_leds +++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds @@ -43,8 +43,6 @@ tplink,vr2600v) ucidef_set_led_switch "wan" "wan" "${boardname}:white:wan" "switch0" "0x20" ;; zyxel,nbg6817) - ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:amber:wifi2g" "phy1tpt" - ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:amber:wifi5g" "phy0tpt" ucidef_set_led_netdev "wan" "WAN" "${boardname}:white:internet" "eth1" ;; *) -- 2.30.2