0003-ar71xx-correctly-detect-hardware-revision-on-TP-Link-Archer-C5-and-C7.patch 853 B

12345678910111213141516171819202122232425262728293031
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sat, 16 Aug 2014 17:52:34 +0200
  3. Subject: ar71xx: correctly detect hardware revision on TP-Link Archer C5 and C7
  4. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  5. index 18da356..1709356 100755
  6. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  7. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  8. @@ -214,6 +214,13 @@ tplink_board_detect() {
  9. "934100"*)
  10. model="NC-LINK SMART-300"
  11. ;;
  12. + "c50000"*)
  13. + model="TP-Link Archer C5"
  14. + ;;
  15. + "750000"*|\
  16. + "c70000"*)
  17. + model="TP-Link Archer C7"
  18. + ;;
  19. *)
  20. hwver=""
  21. ;;
  22. @@ -748,7 +755,7 @@ ar71xx_board_detect() {
  23. esac
  24. case "$machine" in
  25. - *TL-WR* | *TL-WA* | *TL-MR* | *TL-WD*)
  26. + *TL-WR* | *TL-WA* | *TL-MR* | *TL-WD* | *Archer*)
  27. tplink_board_detect "$machine"
  28. ;;
  29. esac