0023-ath10k-add-Candelatech-community-firmware-as-an-additional-choice.patch 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 04dfd3b..5d77ebf 100644
  6. --- a/package/kernel/mac80211/Makefile
  7. +++ b/package/kernel/mac80211/Makefile
  8. @@ -603,6 +603,14 @@ This module adds support for wireless adapters based on
  9. Atheros USB AR9271 and AR7010 family of chipsets.
  10. endef
  11. +ATH10K_CT_COMMUNITY_FW:=firmware-2-ct-full-community-14.bin
  12. +define Download/ath10k-firmware-ct-community
  13. + FILE:=$(ATH10K_CT_COMMUNITY_FW)
  14. + URL:=http://www.candelatech.com/downloads/
  15. + MD5SUM:=800799459c20c1683138c74b3ba58f25
  16. +endef
  17. +$(eval $(call Download,ath10k-firmware-ct-community))
  18. +
  19. define KernelPackage/ath10k
  20. $(call KernelPackage/mac80211/Default)
  21. TITLE:=Atheros 802.11ac wireless cards support
  22. @@ -622,6 +630,17 @@ endef
  23. define KernelPackage/ath10k/config
  24. if PACKAGE_kmod-ath10k
  25. + choice
  26. + prompt "ath10k firmware flavour"
  27. + default ATH10K_AP_FW
  28. + help
  29. + This option allows you to choose between different ath10k firmwares.
  30. +
  31. + config ATH10K_AP_FW
  32. + bool "Firmware optimized for AP operation"
  33. + help
  34. + Use the ath10k firmware optimized for access point operation.
  35. + Supports only AP mode, will crash in IBSS (ad-hoc) mode.
  36. config ATH10K_API2_FW
  37. bool "Firmware optimized for AP operation (v10.1 / API v2)"
  38. @@ -630,6 +649,13 @@ define KernelPackage/ath10k/config
  39. Use the ath10k firmware from the 10.1 SDK using API v2 optimized
  40. for access point operation if the default firmware keeps crashing.
  41. + config ATH10K_CT_COMMUNITY_FW
  42. + bool "Firmware by Candela Technologies (community version)"
  43. + help
  44. + Supports both AP and IBSS (ad-hoc) mode. Doesn't support
  45. + encryption when using multiple VIFs.
  46. +
  47. + endchoice
  48. endif
  49. endef
  50. @@ -1885,11 +1911,17 @@ ifeq ($(CONFIG_ATH10K_API2_FW),y)
  51. $(INSTALL_DATA) \
  52. $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/10.1/firmware-2.bin_10.1.467.2-1 \
  53. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
  54. -else
  55. +endif
  56. +ifeq ($(CONFIG_ATH10K_AP_FW),y)
  57. $(INSTALL_DATA) \
  58. $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/10.2.4/untested/firmware-5.bin_10.2.4.70-2 \
  59. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
  60. endif
  61. +ifeq ($(CONFIG_ATH10K_CT_COMMUNITY_FW),y)
  62. + $(INSTALL_DATA) \
  63. + $(DL_DIR)/$(ATH10K_CT_COMMUNITY_FW) \
  64. + $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
  65. +endif
  66. endef
  67. define KernelPackage/mt7601u/install