0056-ar71xx-Archer-C58-C59-C60-fix-qca9886-wireless-interface.patch 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. From: Henryk Heisig <hyniu@o2.pl>
  2. Date: Thu, 29 Jun 2017 15:20:31 +0200
  3. Subject: ar71xx: Archer C58/C59/C60 fix qca9886 wireless interface
  4. This commit fix 5GHz wireless interface used in Archer C58/C59/C60v1
  5. and set correctly MAC address on this interface.
  6. Signed-off-by: Henryk Heisig <hyniu@o2.pl>
  7. (cherry picked from commit 34958c826915cf864833ed8ba6e5b49d44c6cb41)
  8. diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  9. index cfdc20455d61c3900473f57c3267b1a3fd10e150..91bdf0d3c591516f58030b165052b3dd2751314f 100644
  10. --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  11. +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  12. @@ -136,7 +136,9 @@ case "$FIRMWARE" in
  13. ;;
  14. "ath10k/pre-cal-pci-0000:00:00.0.bin")
  15. case $board in
  16. - archer-c58-v1)
  17. + archer-c58-v1|\
  18. + archer-c59-v1|\
  19. + archer-c60-v1)
  20. ath10kcal_extract "art" 20480 12064
  21. ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
  22. /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
  23. diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
  24. index 7d2eca546d76b771b12026788510f73a293a9a93..669b208231e43fe86e998c7202c133c86ae0bf8d 100644
  25. --- a/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
  26. +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
  27. @@ -12,7 +12,9 @@ PHYNBR=${DEVPATH##*/phy}
  28. board=$(ar71xx_board_name)
  29. case "$board" in
  30. - archer-c58-v1)
  31. + archer-c58-v1|\
  32. + archer-c59-v1|\
  33. + archer-c60-v1)
  34. echo $(macaddr_add $(mtd_get_mac_binary mac 8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
  35. ;;
  36. *)
  37. diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk
  38. index 557bcdab2237a03957313cc3cda471a9fe3a3706..ed45866fcbe8d35af663799a91b09b5c8fd613bc 100644
  39. --- a/target/linux/ar71xx/image/tp-link.mk
  40. +++ b/target/linux/ar71xx/image/tp-link.mk
  41. @@ -121,7 +121,7 @@ TARGET_DEVICES += archer-c25-v1
  42. define Device/archer-c58-v1
  43. DEVICE_TITLE := TP-LINK Archer C58 v1
  44. - DEVICE_PACKAGES := kmod-ath10k
  45. + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
  46. BOARDNAME := ARCHER-C58-V1
  47. TPLINK_BOARD_NAME := ARCHER-C58-V1
  48. DEVICE_PROFILE := ARCHERC58V1
  49. @@ -136,7 +136,7 @@ TARGET_DEVICES += archer-c58-v1
  50. define Device/archer-c59-v1
  51. DEVICE_TITLE := TP-LINK Archer C59 v1
  52. - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k
  53. + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca9888
  54. BOARDNAME := ARCHER-C59-V1
  55. TPLINK_BOARD_NAME := ARCHER-C59-V1
  56. DEVICE_PROFILE := ARCHERC59V1
  57. @@ -151,7 +151,7 @@ TARGET_DEVICES += archer-c59-v1
  58. define Device/archer-c60-v1
  59. DEVICE_TITLE := TP-LINK Archer C60 v1
  60. - DEVICE_PACKAGES := kmod-ath10k
  61. + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
  62. BOARDNAME := ARCHER-C60-V1
  63. TPLINK_BOARD_NAME := ARCHER-C60-V1
  64. DEVICE_PROFILE := ARCHERC60V1