mirror of
https://github.com/openwrt/openwrt.git
synced 2025-12-21 17:04:28 +04:00
packages: nvram: add asus,rt-ac{3200,5300} to set_wireless_led_behaviour
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>
This commit is contained in:
committed by
Daniel Golle
parent
4284d56568
commit
64b6293eb7
@@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=nvram
|
||||
PKG_RELEASE:=12
|
||||
PKG_RELEASE:=13
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user