0037-ar71xx-fix-AR71XX_MODEL-for-TP-Link-TL-WA830RE-v1.patch 773 B

123456789101112131415161718192021222324
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Mon, 15 Jun 2015 21:28:06 +0200
  3. Subject: ar71xx: fix AR71XX_MODEL for TP-Link TL-WA830RE v1
  4. The v1 identifies as v10 internally. As there is no TL-WA830RE v10, add a
  5. workaround to avoid confusing users.
  6. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  7. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  8. index 1838cb4..d79776b 100755
  9. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  10. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  11. @@ -145,6 +145,10 @@ tplink_board_detect() {
  12. ;;
  13. "083000"*)
  14. model="TP-Link TL-WA830RE"
  15. +
  16. + if [ "$hwver" = 'v10' ]; then
  17. + hwver='v1'
  18. + fi
  19. ;;
  20. "084100"*)
  21. model="TP-Link TL-WR841N/ND"