0006-ath10k-firmware-add-Candela-Technologies-firmware-for-QCA988X.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 9 Feb 2016 18:22:29 +0100
  3. Subject: ath10k-firmware: add Candela Technologies firmware for QCA988X
  4. diff --git a/package/firmware/ath10k-firmware/Makefile b/package/firmware/ath10k-firmware/Makefile
  5. index b03d644..7d4d449 100644
  6. --- a/package/firmware/ath10k-firmware/Makefile
  7. +++ b/package/firmware/ath10k-firmware/Makefile
  8. @@ -44,6 +44,26 @@ define Download/ath10k-firmware-qca988x
  9. endef
  10. $(eval $(call Download,ath10k-firmware-qca988x))
  11. +
  12. +define Package/ath10k-firmware-qca988x-ct
  13. +$(Package/ath10k-firmware-default)
  14. + TITLE:=ath10k firmware for QCA988x devices (Candela Technologies version)
  15. + CONFLICTS:=ath10k-firmware-qca988x
  16. +endef
  17. +
  18. +QCA988X_CT_FIRMWARE_FILE:=firmware-5-ct-full-community.bin
  19. +
  20. +define Download/ath10k-firmware-qca988x-ct
  21. + # See http://www.candelatech.com/ath10k.php
  22. + #URL:=http://www.candelatech.com/downloads/ath10k-10-2/
  23. + # Update to beta version (will switch back to official URL after v2 release)
  24. + URL:=https://home.universe-factory.net/neoraider/
  25. + FILE:=$(QCA988X_CT_FIRMWARE_FILE)
  26. + MD5SUM:=9aa205cfd6b98e695ca8e9ae6d1bcb6b
  27. +endef
  28. +$(eval $(call Download,ath10k-firmware-qca988x-ct))
  29. +
  30. +
  31. define Package/ath10k-firmware-qca99x0
  32. $(Package/ath10k-firmware-default)
  33. TITLE:=ath10k firmware for QCA99x0 devices
  34. @@ -79,6 +99,16 @@ define Package/ath10k-firmware-qca988x/install
  35. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
  36. endef
  37. +define Package/ath10k-firmware-qca988x-ct/install
  38. + $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
  39. + $(INSTALL_DATA) \
  40. + $(PKG_BUILD_DIR)/QCA988X/board.bin \
  41. + $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
  42. + $(INSTALL_DATA) \
  43. + $(DL_DIR)/$(QCA988X_CT_FIRMWARE_FILE) \
  44. + $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
  45. +endef
  46. +
  47. define Package/ath10k-firmware-qca6174/install
  48. $(INSTALL_DIR) $(1)/lib/firmware/ath10k
  49. $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
  50. @@ -98,5 +128,6 @@ define Package/ath10k-firmware-qca99x0/install
  51. endef
  52. $(eval $(call BuildPackage,ath10k-firmware-qca988x))
  53. +$(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
  54. $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
  55. $(eval $(call BuildPackage,ath10k-firmware-qca6174))
  56. diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
  57. index 30da1cf..cd8d670 100644
  58. --- a/package/kernel/mac80211/Makefile
  59. +++ b/package/kernel/mac80211/Makefile
  60. @@ -247,7 +247,7 @@ define KernelPackage/ath10k
  61. $(call KernelPackage/mac80211/Default)
  62. TITLE:=Atheros 802.11ac wireless cards support
  63. URL:=https://wireless.wiki.kernel.org/en/users/Drivers/ath10k
  64. - DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +@KERNEL_RELAY +ath10k-firmware-qca988x
  65. + DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +@KERNEL_RELAY
  66. FILES:= \
  67. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \
  68. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko