summaryrefslogtreecommitdiff
path: root/libre/linux-libre-firmware/install-ath9k_htc-on-prefix-ath9k_htc-too.patch
blob: 2d2f825746b9769c5b094ce4f318d9d1573477e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From 432e85147a167f1fec75464f97e28326c9b95c3c Mon Sep 17 00:00:00 2001
From: David P <megver83@parabola.nu>
Date: Fri, 18 May 2018 13:22:54 -0400
Subject: [PATCH] install ath9k_htc on $(prefix)/ath9k_htc too

Having ath9k_htc fw files installed at $(prefix)/ makes it work, but not having them in $(prefix)/ath9k_htc
causes the following:

[    8.952592] usb 3-2: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[    8.952652] usb 3-2: Direct firmware load for ath9k_htc/htc_9271-1.4.0.fw failed with error -2
[    8.952655] usb 3-2: ath9k_htc: Firmware htc_9271.fw requested

Although the firmware works, it throws that (benign) error, that's why linux-firmware installs it in both,
/lib/firmware and /lib/firmware/ath9k_htc, and this patch fixes this.

[    3.929726] Workqueue: events request_firmware_work_func
[    3.929769]  ? _request_firmware+0x423/0xcc0
[    3.929772]  request_firmware_work_func+0x47/0x90
[    5.408573] usb 3-2: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested

Signed-off-by: David P <megver83@parabola.nu>
---
 src/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git src/Makefile src/Makefile
index c2b8451..2a78f98 100644
--- src/Makefile
+++ src/Makefile
@@ -83,8 +83,10 @@ clean:
 	cd usbdux && $(MAKE) -f Makefile_dux clean
 
 install:
-	if [ -a ath9k_htc/target_firmware/htc_9271.fw ]; then $(install_program) -D ath9k_htc/target_firmware/htc_9271.fw $(prefix)/htc_9271.fw; fi;
-	if [ -a ath9k_htc/target_firmware/htc_7010.fw ]; then $(install_program) -D ath9k_htc/target_firmware/htc_7010.fw $(prefix)/htc_7010.fw; fi;
+	if [ -a ath9k_htc/target_firmware/htc_9271.fw ]; then $(install_program) -D ath9k_htc/target_firmware/htc_9271.fw $(prefix)/ath9k_htc/htc_9271-1.4.0.fw && \
+		ln -s ath9k_htc/htc_9271-1.4.0.fw $(prefix)/htc_9271.fw; fi;
+	if [ -a ath9k_htc/target_firmware/htc_7010.fw ]; then $(install_program) -D ath9k_htc/target_firmware/htc_7010.fw $(prefix)/ath9k_htc/htc_7010-1.4.0.fw && \
+		ln -s ath9k_htc/htc_7010-1.4.0.fw $(prefix)/htc_7010.fw; fi;
 	if [ -a av7110/bootcode.bin ]; then $(install_program) -D av7110/bootcode.bin $(prefix)/av7110/bootcode.bin; fi;
 	if [ -a cis/3CCFEM556.cis ]; then $(install_program) -D cis/3CCFEM556.cis $(prefix)/cis/3CCFEM556.cis; fi;
 	if [ -a cis/3CXEM556.cis ]; then $(install_program) -D cis/3CXEM556.cis $(prefix)/cis/3CXEM556.cis; fi;
-- 
2.17.0