Current ath9k_htc doesn't work anymore with the ar9271.fw and ar7010.fw
firmware files. Hence, use the new renamed firmware htc_9271.fw and
htc_7010.fw.

This allows ath9k_htc to successfully load and operate.

Signed-off-by: Helmut Schaa <[email protected]>
---
 package/mac80211/Makefile |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile
index be35ad1..59d56fb 100644
--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -118,6 +118,9 @@ P54PCIFW:=2.13.12.0.arm
 P54USBFW:=2.13.24.0.lm87.arm
 P54SPIFW:=2.13.0.0.a.13.14.arm
 CARL9170_FW:=carl9170-1.fw
+ATH9K_HTC_9271_FW:=htc_9271.fw
+ATH9K_HTC_7010_FW:=htc_7010.fw
+ATH9K_HTC_FW_VERSION:=1.3
 
 define Download/p54usb
   FILE:=$(P54USBFW)
@@ -147,6 +150,20 @@ define Download/carl9170
 endef
 $(eval $(call Download,carl9170))
 
+define Download/ath9k-htc-9271
+  FILE:=$(ATH9K_HTC_9271_FW)
+  URL:=http://linuxwireless.org/download/htc_fw/$(ATH9K_HTC_FW_VERSION)
+  MD5SUM:=76c902360ef8a095133258fd0d287292
+endef
+$(eval $(call Download,ath9k-htc-9271))
+
+define Download/ath9k-htc-7010
+  FILE:=$(ATH9K_HTC_7010_FW)
+  URL:=http://linuxwireless.org/download/htc_fw/$(ATH9K_HTC_FW_VERSION)
+  MD5SUM:=23b4b8f235ab44452a109e8be2756134
+endef
+$(eval $(call Download,ath9k-htc-7010))
+
 define KernelPackage/p54/Default
   $(call KernelPackage/mac80211/Default)
   TITLE:=Prism54 Drivers
@@ -1319,10 +1336,8 @@ endef
 
 define KernelPackage/ath9k-htc/install
        $(INSTALL_DIR) $(1)/lib/firmware
-       $(INSTALL_DATA) \
-               $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ar9271.fw \
-               $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ar7010.fw \
-               $(1)/lib/firmware/
+       $(INSTALL_DATA) $(DL_DIR)/$(ATH9K_HTC_9271_FW) 
$(1)/lib/firmware/$(ATH9K_HTC_9271_FW)
+       $(INSTALL_DATA) $(DL_DIR)/$(ATH9K_HTC_7010_FW) 
$(1)/lib/firmware/$(ATH9K_HTC_7010_FW)
 endef
 
 define KernelPackage/mwl8k/install
-- 
1.7.3.4

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to