0082-ar71xx-fix-LEDs-and-sysupgrade-support-for-TL-WA801ND-v3.patch 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 6 Dec 2016 16:18:49 +0100
  3. Subject: ar71xx: fix LEDs and sysupgrade support for TL-WA801ND v3
  4. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  5. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  6. index 2c5d6af..6b0caa6 100644
  7. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  8. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  9. @@ -274,6 +274,7 @@ get_status_led() {
  10. tl-wr1043nd-v2 | \
  11. tl-wr741nd | \
  12. tl-wr741nd-v4 | \
  13. + tl-wa801nd-v3 | \
  14. tl-wr841n-v1 | \
  15. tl-wr841n-v7 | \
  16. tl-wr841n-v8 | \
  17. diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  18. index 2a0f996..849755f 100644
  19. --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  20. +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  21. @@ -536,6 +536,11 @@ tl-wa901nd-v3)
  22. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  23. ;;
  24. +tl-wa801nd-v3)
  25. + ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
  26. + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  27. + ;;
  28. +
  29. tl-wr941nd | \
  30. tl-wr1041n-v2)
  31. ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
  32. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  33. index 4003b21..ee2e596 100755
  34. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  35. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  36. @@ -349,6 +349,7 @@ platform_check_image() {
  37. tl-wa850re | \
  38. tl-wa860re | \
  39. tl-wa801nd-v2 | \
  40. + tl-wa801nd-v3 | \
  41. tl-wa901nd | \
  42. tl-wa901nd-v2 | \
  43. tl-wa901nd-v3 | \
  44. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c
  45. index 39cdb10..054c14e 100644
  46. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c
  47. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa801nd-v3.c
  48. @@ -24,7 +24,7 @@
  49. #include "machtypes.h"
  50. #define TL_WA801NDV3_GPIO_LED_WLAN 12
  51. -#define TL_WA801NDV3_GPIO_LED_QSS 13
  52. +#define TL_WA801NDV3_GPIO_LED_SYSTEM 13
  53. #define TL_WA801NDV3_GPIO_LED_SECURITY_RED 11
  54. #define TL_WA801NDV3_GPIO_LED_SECURITY_GREEN 15
  55. #define TL_WA801NDV3_GPIO_LED_LAN 3
  56. @@ -46,8 +46,8 @@ static struct flash_platform_data tl_wa801n_v3_flash_data = {
  57. static struct gpio_led tl_wa801n_v3_leds_gpio[] __initdata = {
  58. {
  59. - .name = "tp-link:green:qss",
  60. - .gpio = TL_WA801NDV3_GPIO_LED_QSS,
  61. + .name = "tp-link:green:system",
  62. + .gpio = TL_WA801NDV3_GPIO_LED_SYSTEM,
  63. .active_low = 1,
  64. }, {
  65. .name = "tp-link:green:lan",