0021-ar71xx-fix-switched-WLAN-LEDs-on-TP-LINK-Archer-C5-C7.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 10 Mar 2015 14:06:01 +0100
  3. Subject: ar71xx: fix switched WLAN LEDs on TP-LINK Archer C5/C7
  4. ath10k is loaded before ath9k, so the 5GHz adapter becomes phy0.
  5. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  6. index 36fe028..315a9fd 100755
  7. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  8. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  9. @@ -320,8 +320,6 @@ tl-wdr4300)
  10. ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
  11. ;;
  12. -archer-c5|\
  13. -archer-c7|\
  14. tl-wdr4900-v2)
  15. ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
  16. ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
  17. @@ -329,6 +327,14 @@ tl-wdr4900-v2)
  18. ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
  19. ;;
  20. +archer-c5|\
  21. +archer-c7)
  22. + ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
  23. + ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
  24. + ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
  25. + ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
  26. + ;;
  27. +
  28. tl-wr741nd)
  29. ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
  30. ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"