From ffb46c40d99a3011d6dee9fc1ed3799d06cf537c Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 3 Oct 2018 17:20:35 +0200 Subject: [PATCH] ar71xx: add Archer C7 v5 switch LEDs --- ...fix-TP-Link-Archer-C7-v5-switch-LEDs.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 patches/openwrt/0008-ar71xx-fix-TP-Link-Archer-C7-v5-switch-LEDs.patch diff --git a/patches/openwrt/0008-ar71xx-fix-TP-Link-Archer-C7-v5-switch-LEDs.patch b/patches/openwrt/0008-ar71xx-fix-TP-Link-Archer-C7-v5-switch-LEDs.patch new file mode 100644 index 00000000..49821f77 --- /dev/null +++ b/patches/openwrt/0008-ar71xx-fix-TP-Link-Archer-C7-v5-switch-LEDs.patch @@ -0,0 +1,34 @@ +From: Rinki13 +Date: Thu, 27 Sep 2018 21:40:15 +0530 +Subject: ar71xx: fix TP-Link Archer C7 v5 switch LEDs + +Signed-off-by: Rinki13 + +diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds +index 858d6750082ecacefc00a8d6cfce0b264c8e06bd..b6aaf83fdb88a3aafd3d684a57a29a7f0e772f58 100755 +--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds ++++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds +@@ -142,7 +142,8 @@ archer-c60-v2) + ;; + esac + ;; +-archer-c7-v4) ++archer-c7-v4|\ ++archer-c7-v5) + ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt" + ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt" + ucidef_set_led_switch "wan" "WAN" "$board:green:wan" "switch0" "0x02" +@@ -151,7 +152,12 @@ archer-c7-v4) + ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan2" "switch0" "0x10" + ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan1" "switch0" "0x20" + ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1" +- ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1" ++ ++ case "$board" in ++ archer-c7-v4) ++ ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1" ++ ;; ++ esac + ;; + arduino-yun) + ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"