0031-ath10k-add-Candelatech-community-firmware-as-an-additional-choice.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 10 Mar 2015 13:17:14 +0100
  3. Subject: ath10k: add Candelatech community firmware as an additional choice
  4. diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
  5. index 566e156..1dc1816 100644
  6. --- a/package/kernel/mac80211/Makefile
  7. +++ b/package/kernel/mac80211/Makefile
  8. @@ -270,6 +270,29 @@ Atheros IEEE 802.11ac family of chipsets. For now only
  9. PCI is supported.
  10. endef
  11. +define KernelPackage/ath10k/config
  12. + if PACKAGE_kmod-ath10k
  13. + choice
  14. + prompt "ath10k firmware flavour"
  15. + default ATH10K_AP_FW
  16. + help
  17. + This option allows you to choose between different ath10k firmwares.
  18. +
  19. + config ATH10K_AP_FW
  20. + bool "Firmware optimized for AP operation"
  21. + help
  22. + Use the ath10k firmware optimized for access point operation.
  23. + Supports only AP mode, will crash in IBSS (ad-hoc) mode.
  24. +
  25. + config ATH10K_CT_COMMUNITY_FW
  26. + bool "Firmware by Candela Technologies (community version)"
  27. + help
  28. + Supports both AP and IBSS (ad-hoc) mode. Doesn't support
  29. + encryption when using multiple VIFs.
  30. + endchoice
  31. + endif
  32. + endef
  33. +
  34. PKG_ATH10K_LINUX_FIRMWARE_NAME:=ath10k-firmware
  35. PKG_ATH10K_LINUX_FIRMWARE_VERSION:=b46f3e01a6c1f9150fb4612ef53611d714565842
  36. PKG_ATH10K_LINUX_FIRMWARE_SOURCE:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION).tar.bz2
  37. @@ -288,6 +311,14 @@ define Download/ath10k-firmware
  38. endef
  39. $(eval $(call Download,ath10k-firmware))
  40. +ATH10K_CT_COMMUNITY_FW:=firmware-2-ct-full-community-14.bin
  41. +define Download/ath10k-firmware-ct-community
  42. + FILE:=$(ATH10K_CT_COMMUNITY_FW)
  43. + URL:=http://www.candelatech.com/downloads/
  44. + MD5SUM:=800799459c20c1683138c74b3ba58f25
  45. +endef
  46. +$(eval $(call Download,ath10k-firmware-ct-community))
  47. +
  48. #Broadcom firmware
  49. ifneq ($(CONFIG_B43_FW_6_30),)
  50. @@ -1854,9 +1885,16 @@ define KernelPackage/ath10k/install
  51. $(INSTALL_DATA) \
  52. $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/board.bin \
  53. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
  54. +ifeq ($(CONFIG_ATH10K_AP_FW),y)
  55. $(INSTALL_DATA) \
  56. $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/10.2.4/untested/firmware-5.bin_10.2.4.70-2 \
  57. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
  58. +endif
  59. +ifeq ($(CONFIG_ATH10K_CT_COMMUNITY_FW),y)
  60. + $(INSTALL_DATA) \
  61. + $(DL_DIR)/$(ATH10K_CT_COMMUNITY_FW) \
  62. + $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
  63. +endif
  64. endef
  65. define KernelPackage/b43/install