packages: nvram: add asus,rt-ac{3200,5300} to set_wireless_led_behaviour
authorChester A. Unal <chester.a.unal@arinc9.com>
Mon, 8 Apr 2024 08:36:58 +0000 (11:36 +0300)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 18 Dec 2025 18:18:48 +0000 (18:18 +0000)
Add ASUS RT-AC3200 and ASUS RT-AC5300 to the set wireless LED behaviour
quirk. ASUS RT-AC3200's wireless chip is different than ASUS RT-AC5300's,
the environment variables for it are 0:ledbh10 and 1:ledbh10.

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
package/utils/nvram/Makefile
package/utils/nvram/files/nvram-bcm53xx.init

index 8547bfa2d6c348e3e1e89f44c8aa0f94b0c4dbe2..ef65ae0cc204c97e69bc118469cf7d4d13a27a64 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nvram
-PKG_RELEASE:=12
+PKG_RELEASE:=13
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
index f47c944897cdf76ead4ff6820197c4e09505b658..d17d301c45907730092e847e1845d41b96fa5461 100755 (executable)
@@ -19,16 +19,23 @@ clear_partialboots() {
 
 set_wireless_led_behaviour() {
        # set Broadcom wireless LED behaviour for both radios
-       # 0:ledbh9 -> Behaviour of 2.4GHz LED
-       # 1:ledbh9 -> Behaviour of 5GHz LED
+       # 0:ledbh9 -> Behaviour of 2.4GHz LED of Broadcom BCM4366
+       # 1:ledbh9 -> Behaviour of 5GHz LED of Broadcom BCM4366
+       # 0:ledbh10 -> Behaviour of 2.4GHz LED of Broadcom BCM43602
+       # 1:ledbh10 -> Behaviour of 5GHz LED of Broadcom BCM43602
        # 0x7 makes the wireless LEDs on, when radios are enabled, and blink when there's activity
 
        case $(board_name) in
                asus,rt-ac3100|\
+               asus,rt-ac5300|\
                asus,rt-ac88u)
                        COMMIT=1
                        nvram set 0:ledbh9=0x7 set 1:ledbh9=0x7
                        ;;
+               asus,rt-ac3200)
+                       COMMIT=1
+                       nvram set 0:ledbh10=0x7 set 1:ledbh10=0x7
+                       ;;
        esac
 }