mirror of https://github.com/hak5/openwrt.git
ramips: remove option to set WiFi LED via aliases
In ramips, it's not common to use an alias for specifying the WiFi LED; actually only one device uses this mechanism (TL-WR841N v14). Particularly since the WiFi LEDs are typically distinguished between 2.4G and 5G etc. it is also not very useful for this target. Thus, this patch removes the setup lines for this mechanism and converts the TL-WR841N v14 to the normal setup. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>master
parent
c846dd91f0
commit
ed5933beb6
|
@ -13,8 +13,6 @@
|
|||
led-boot = &led_wlan;
|
||||
led-failsafe = &led_wlan;
|
||||
led-upgrade = &led_wlan;
|
||||
|
||||
led-wlan = &led_wlan;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -11,9 +11,6 @@ board=$(board_name)
|
|||
|
||||
board_config_update
|
||||
|
||||
led_wlan="$(get_dt_led wlan)"
|
||||
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
|
||||
|
||||
case $board in
|
||||
aigale,ai-br100)
|
||||
ucidef_set_led_netdev "wan" "wan" "blue:wan" "eth0.2"
|
||||
|
|
|
@ -11,9 +11,6 @@ board=$(board_name)
|
|||
|
||||
board_config_update
|
||||
|
||||
led_wlan="$(get_dt_led wlan)"
|
||||
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
|
||||
|
||||
case $board in
|
||||
d-team,newifi-d2)
|
||||
ucidef_set_led_netdev "internet" "internet" "amber:internet" "wan"
|
||||
|
|
|
@ -11,9 +11,6 @@ board=$(board_name)
|
|||
|
||||
board_config_update
|
||||
|
||||
led_wlan="$(get_dt_led wlan)"
|
||||
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
|
||||
|
||||
case $board in
|
||||
alfa-network,awusfree1)
|
||||
set_wifi_led "blue:wlan"
|
||||
|
@ -56,7 +53,6 @@ tama,w06)
|
|||
;;
|
||||
tplink,archer-c20-v4|\
|
||||
tplink,archer-c20-v5|\
|
||||
tplink,tl-wr841n-v14|\
|
||||
tplink,tl-wr850n-v2)
|
||||
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
|
||||
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
|
||||
|
@ -90,6 +86,11 @@ tplink,tl-wr841n-v13)
|
|||
ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10"
|
||||
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
|
||||
;;
|
||||
tplink,tl-wr841n-v14)
|
||||
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
|
||||
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
|
||||
ucidef_set_led_wlan "wifi_led" "wifi" "green:wlan" "phy0tpt"
|
||||
;;
|
||||
tplink,tl-wr902ac-v3)
|
||||
ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt"
|
||||
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x10"
|
||||
|
|
|
@ -11,9 +11,6 @@ board=$(board_name)
|
|||
|
||||
board_config_update
|
||||
|
||||
led_wlan="$(get_dt_led wlan)"
|
||||
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
|
||||
|
||||
case $board in
|
||||
airlink101,ar670w|\
|
||||
airlink101,ar725w)
|
||||
|
|
|
@ -11,9 +11,6 @@ board=$(board_name)
|
|||
|
||||
board_config_update
|
||||
|
||||
led_wlan="$(get_dt_led wlan)"
|
||||
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
|
||||
|
||||
case $board in
|
||||
7links,px-4885-4m|\
|
||||
7links,px-4885-8m|\
|
||||
|
|
|
@ -11,9 +11,6 @@ board=$(board_name)
|
|||
|
||||
board_config_update
|
||||
|
||||
led_wlan="$(get_dt_led wlan)"
|
||||
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
|
||||
|
||||
case $board in
|
||||
belkin,f9k1109v1)
|
||||
ucidef_set_led_netdev "lan" "lan" "blue:wps" "eth0"
|
||||
|
|
Loading…
Reference in New Issue