0006-ath10k-firmware-update-to-LEDE-0a0caa2656c8db73518a1783743ede772e3ac40f.patch 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 9 Feb 2016 18:22:29 +0100
  3. Subject: ath10k-firmware: update to LEDE 0a0caa2656c8db73518a1783743ede772e3ac40f
  4. diff --git a/package/firmware/ath10k-firmware/Makefile b/package/firmware/ath10k-firmware/Makefile
  5. index b03d644..4f63cdd 100644
  6. --- a/package/firmware/ath10k-firmware/Makefile
  7. +++ b/package/firmware/ath10k-firmware/Makefile
  8. @@ -8,7 +8,7 @@
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=ath10k-firmware
  11. -PKG_SOURCE_VERSION:=77f72b5f7dd940386d9e619a17904987759b7186
  12. +PKG_SOURCE_VERSION:=b00eb8d30fbebb6a5047ccacefa8c37e072fca9c
  13. PKG_VERSION:=2014-11-13-$(PKG_SOURCE_VERSION)
  14. PKG_RELEASE:=1
  15. @@ -17,7 +17,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git
  18. -PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
  19. +PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  20. include $(INCLUDE_DIR)/package.mk
  21. @@ -28,14 +28,18 @@ define Package/ath10k-firmware-default
  22. CATEGORY:=Kernel modules
  23. SUBMENU:=$(WMENU)
  24. URL:=$(PKG_SOURCE_URL)
  25. + DEPENDS:=kmod-ath10k
  26. endef
  27. define Package/ath10k-firmware-qca988x
  28. $(Package/ath10k-firmware-default)
  29. + DEFAULT:=PACKAGE_kmod-ath10k
  30. TITLE:=ath10k firmware for QCA988x devices
  31. endef
  32. QCA988X_FIRMWARE_FILE:=firmware-5.bin_10.2.4.97-1
  33. +QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-16.bin-lede
  34. +QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-7.bin-lede.001
  35. define Download/ath10k-firmware-qca988x
  36. URL:=https://www.codeaurora.org/cgit/quic/qsdk/oss/firmware/ath10k-firmware/plain/10.2.4/
  37. @@ -44,11 +48,63 @@ define Download/ath10k-firmware-qca988x
  38. endef
  39. $(eval $(call Download,ath10k-firmware-qca988x))
  40. +define Download/ath10k-firmware-qca988x-ct
  41. + URL:=https://www.candelatech.com/downloads/
  42. + FILE:=$(QCA988X_FIRMWARE_FILE_CT)
  43. + MD5SUM:=5b651c0458bcf5c20701308b5e519976
  44. +endef
  45. +$(eval $(call Download,ath10k-firmware-qca988x-ct))
  46. +
  47. +define Download/ath10k-firmware-qca99x0-ct
  48. + URL:=https://www.candelatech.com/downloads/ath10k-10-4/
  49. + FILE:=$(QCA99X0_FIRMWARE_FILE_CT)
  50. + MD5SUM:=eb710949ff79142954aadae24616169c
  51. +endef
  52. +$(eval $(call Download,ath10k-firmware-qca99x0-ct))
  53. +
  54. define Package/ath10k-firmware-qca99x0
  55. $(Package/ath10k-firmware-default)
  56. TITLE:=ath10k firmware for QCA99x0 devices
  57. endef
  58. +define Package/ath10k-firmware-qca988x-ct
  59. +$(Package/ath10k-firmware-default)
  60. + TITLE:=ath10k CT 10.1 firmware for QCA988x devices
  61. +endef
  62. +
  63. +define Package/ath10k-firmware-qca988x-ct/description
  64. +Alternative ath10k firmware for QCA988X from Candela Technologies.
  65. +Enables IBSS and other features. See:
  66. +http://www.candelatech.com/ath10k-10.1.php
  67. +This firmware will NOT be used unless the standard ath10k-firmware-qca988x
  68. +is un-selected since the driver will try to load firmware-5.bin before
  69. +firmware-2.bin
  70. +endef
  71. +
  72. +define Package/ath10k-firmware-qca99x0-ct/description
  73. +Alternative ath10k firmware for QCA99x0 from Candela Technologies.
  74. +Enables IBSS and other features. See:
  75. +http://www.candelatech.com/ath10k-10.4.php
  76. +This firmware conflicts with the standard 99x0 firmware, so select only
  77. +one.
  78. +endef
  79. +
  80. +define Package/ath10k-firmware-qca99x0/description
  81. +Standard ath10k firmware for QCA99x0 from QCA
  82. +This firmware conflicts with the CT 99x0 firmware, so select only
  83. +one.
  84. +endef
  85. +
  86. +define Package/ath10k-firmware-qca99x0-ct
  87. +$(Package/ath10k-firmware-default)
  88. + TITLE:=ath10k CT 10.4.3 firmware for QCA99x0 devices
  89. +endef
  90. +
  91. +define Package/ath10k-firmware-qca9984
  92. +$(Package/ath10k-firmware-default)
  93. + TITLE:=ath10k firmware for QCA9984 devices
  94. +endef
  95. +
  96. define Package/ath10k-firmware-qca6174
  97. $(Package/ath10k-firmware-default)
  98. TITLE:=ath10k firmware for QCA6174 devices
  99. @@ -58,8 +114,8 @@ QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
  100. QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
  101. define Download/qca99x0-board
  102. - URL:=https://www.codeaurora.org/cgit/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
  103. - URL_FILE:=board-2.bin?id=ddcec9efd245da9365c474f513a855a55f3ac7fe
  104. + URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
  105. + URL_FILE:=board-2.bin?id=$(QCA99X0_BOARD_REV)
  106. FILE:=$(QCA99X0_BOARD_FILE)
  107. MD5SUM:=a2b3c653c2363a5641200051d6333d0a
  108. endef
  109. @@ -79,6 +135,16 @@ define Package/ath10k-firmware-qca988x/install
  110. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
  111. endef
  112. +define Package/ath10k-firmware-qca988x-ct/install
  113. + $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
  114. + $(INSTALL_DATA) \
  115. + $(PKG_BUILD_DIR)/QCA988X/board.bin \
  116. + $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
  117. + $(INSTALL_DATA) \
  118. + $(DL_DIR)/$(QCA988X_FIRMWARE_FILE_CT) \
  119. + $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
  120. +endef
  121. +
  122. define Package/ath10k-firmware-qca6174/install
  123. $(INSTALL_DIR) $(1)/lib/firmware/ath10k
  124. $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
  125. @@ -97,6 +163,33 @@ define Package/ath10k-firmware-qca99x0/install
  126. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
  127. endef
  128. +define Package/ath10k-firmware-qca99x0-ct/install
  129. + $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
  130. + $(INSTALL_DATA) \
  131. + $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
  132. + $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
  133. + $(INSTALL_DATA) \
  134. + $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
  135. + $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
  136. + $(INSTALL_DATA) \
  137. + $(DL_DIR)/$(QCA99X0_FIRMWARE_FILE_CT) \
  138. + $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
  139. +endef
  140. +
  141. +define Package/ath10k-firmware-qca9984/install
  142. + $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
  143. + $(INSTALL_DATA) \
  144. + $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
  145. + $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
  146. + $(INSTALL_DATA) \
  147. + $(PKG_BUILD_DIR)/QCA9984/hw1.0/firmware-5.bin_10.4-3.2-00072 \
  148. + $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
  149. +endef
  150. +
  151. $(eval $(call BuildPackage,ath10k-firmware-qca988x))
  152. $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
  153. $(eval $(call BuildPackage,ath10k-firmware-qca6174))
  154. +$(eval $(call BuildPackage,ath10k-firmware-qca9984))
  155. +
  156. +$(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
  157. +$(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct))
  158. diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
  159. index 30da1cf..cd8d670 100644
  160. --- a/package/kernel/mac80211/Makefile
  161. +++ b/package/kernel/mac80211/Makefile
  162. @@ -247,7 +247,7 @@ define KernelPackage/ath10k
  163. $(call KernelPackage/mac80211/Default)
  164. TITLE:=Atheros 802.11ac wireless cards support
  165. URL:=https://wireless.wiki.kernel.org/en/users/Drivers/ath10k
  166. - DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +@KERNEL_RELAY +ath10k-firmware-qca988x
  167. + DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +@KERNEL_RELAY
  168. FILES:= \
  169. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \
  170. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko