0021-ar71xx-fix-the-revision-of-a-few-TP-LINK-devices-in-AR71XX_MODEL-to-match-labels-image-names.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 1 Apr 2016 23:21:32 +0200
  3. Subject: ar71xx: fix the revision of a few TP-LINK devices in AR71XX_MODEL to match labels/image names
  4. Let's not confuse users about the revisions of their devices when we can
  5. easily avoid it.
  6. Not tested on real hardware.
  7. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  8. Backport of r49107
  9. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  10. index 96a37b4bec019d06c9283afc44b7961d150c05fb..6c106179bfa0c01308a03678aef1b7cf4caaf05b 100755
  11. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  12. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  13. @@ -162,6 +162,10 @@ tplink_board_detect() {
  14. ;;
  15. "071000"*)
  16. model="TP-Link TL-WR710N"
  17. +
  18. + if [ "$hwid" = '07100002' -a "$mid" = '00000002' ]; then
  19. + hwver=' v2.1'
  20. + fi
  21. ;;
  22. "072001"*)
  23. model="TP-Link TL-WR720N"
  24. @@ -202,6 +206,10 @@ tplink_board_detect() {
  25. ;;
  26. "084100"*)
  27. model="TP-Link TL-WR841N/ND"
  28. +
  29. + if [ "$hwid" = '08410002' -a "$mid" = '00000002' ]; then
  30. + hwver=' v1.5'
  31. + fi
  32. ;;
  33. "084200"*)
  34. model="TP-Link TL-WR842N/ND"