diff mbox

[LEDE-DEV,2/2] ath10k-ct-fw: Add support for QCA9887 CT firmware.

Message ID 1481316836-4721-2-git-send-email-greearb@candelatech.com
State Accepted
Headers show

Commit Message

Ben Greear Dec. 9, 2016, 8:53 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

I do not have hardware to test this on, but someone said it at least
sort of worked for them.  Hoping to get feedback if others try it.

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
 package/firmware/ath10k-firmware/Makefile | 36 +++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
diff mbox

Patch

diff --git a/package/firmware/ath10k-firmware/Makefile b/package/firmware/ath10k-firmware/Makefile
index 9281e1d..0fd11b9 100644
--- a/package/firmware/ath10k-firmware/Makefile
+++ b/package/firmware/ath10k-firmware/Makefile
@@ -69,6 +69,8 @@  endef
 
 QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community.bin-18.rc3-lede
 QCA988X_FIRMWARE_FILE_CT_SUM:=4cd2b6ce0867d1aec7879f3a5a4d4774
+QCA9887_FIRMWARE_FILE_CT:=firmware-2-ct-full-community.bin-18.rc3-lede
+QCA9887_FIRMWARE_FILE_CT_SUM:=d2a6e3c199828feb486c4770c77ce2d7
 QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.006
 QCA99X0_FIRMWARE_FILE_CT_SUM:=ccd8f09b5200a468907bf7acb6f2f2e7
 QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.006
@@ -83,6 +85,13 @@  define Download/ath10k-firmware-qca988x-ct
 endef
 $(eval $(call Download,ath10k-firmware-qca988x-ct))
 
+define Download/ath10k-firmware-qca9887-ct
+  URL:=https://www.candelatech.com/downloads/ath10k-9887
+  FILE:=$(QCA9887_FIRMWARE_FILE_CT)
+  MD5SUM:=$(QCA9887_FIRMWARE_FILE_CT_SUM)
+endef
+$(eval $(call Download,ath10k-firmware-qca9887-ct))
+
 define Download/ath10k-firmware-qca99x0-ct
   URL:=https://www.candelatech.com/downloads/ath10k-10-4/
   FILE:=$(QCA99X0_FIRMWARE_FILE_CT)
@@ -118,6 +127,13 @@  $(Package/ath10k-firmware-default)
   CATEGORY:=Firmware
 endef
 
+define Package/ath10k-firmware-qca9887-ct
+$(Package/ath10k-firmware-default)
+  TITLE:=ath10k CT 10.1 firmware for QCA9887 devices
+  SECTION:=firmware
+  CATEGORY:=Firmware
+endef
+
 define Package/ath10k-firmware-qca988x-ct/description
 Alternative ath10k firmware for QCA988X from Candela Technologies.
 Enables IBSS and other features.  See:
@@ -127,6 +143,15 @@  is un-selected since the driver will try to load firmware-5.bin before
 firmware-2.bin
 endef
 
+define Package/ath10k-firmware-qca9887-ct/description
+Alternative ath10k firmware for QCA9887 from Candela Technologies.
+Enables IBSS and other features.  See:
+http://www.candelatech.com/ath10k-10.1.php
+This firmware will NOT be used unless the standard ath10k-firmware-qca9887
+is un-selected since the driver will try to load firmware-5.bin before
+firmware-2.bin
+endef
+
 define Package/ath10k-firmware-qca99x0-ct/description
 Alternative ath10k firmware for QCA99x0 from Candela Technologies.
 Enables IBSS and other features.  See:
@@ -237,6 +262,16 @@  define Package/ath10k-firmware-qca988x-ct/install
 		$(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
 endef
 
+define Package/ath10k-firmware-qca9887-ct/install
+	$(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
+	$(INSTALL_DATA) \
+		$(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
+		$(1)/lib/firmware/ath10k/QCA9887/hw1.0/
+	$(INSTALL_DATA) \
+		$(DL_DIR)/$(QCA9887_FIRMWARE_FILE_CT) \
+		$(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-2.bin
+endef
+
 define Package/ath10k-firmware-qca6174/install
 	$(INSTALL_DIR) $(1)/lib/firmware/ath10k
 	$(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
@@ -314,6 +349,7 @@  $(eval $(call BuildPackage,ath10k-firmware-qca6174))
 $(eval $(call BuildPackage,ath10k-firmware-qca9984))
 
 $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
+$(eval $(call BuildPackage,ath10k-firmware-qca9887-ct))
 $(eval $(call BuildPackage,ath10k-firmware-qca9888-ct))
 $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct))
 $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct))