[source] ipq806x: qca99xx: fix wifi calibration

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 17 03:20:20 PDT 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/189239ade353636f9e2788cd0467bcca97bb9324

commit 189239ade353636f9e2788cd0467bcca97bb9324
Author: Pavel Kubelun <be.dissent at gmail.com>
AuthorDate: Thu Jun 8 09:06:27 2017 +0300

    ipq806x: qca99xx: fix wifi calibration
    
    As of now OTP is being correctly parsed and the driver requires to parse pre-caldata to follow corresponding routine.
    
    Rename cal file into pre-calfile so the board initialized correctly with API 2 board data (board-2.bin).
    
    Also remove the now unneeded for qca9984 board.bin symlink to 5GHz calfile.
    
    Signed-off-by: Pavel Kubelun <be.dissent at gmail.com>
---
 package/firmware/ath10k-firmware/Makefile                           | 6 ------
 .../ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata     | 4 ++--
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/package/firmware/ath10k-firmware/Makefile b/package/firmware/ath10k-firmware/Makefile
index 17ff2ca..d33f650 100644
--- a/package/firmware/ath10k-firmware/Makefile
+++ b/package/firmware/ath10k-firmware/Makefile
@@ -319,9 +319,6 @@ endef
 
 define Package/ath10k-firmware-qca9984/install
 	$(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
-	ln -s \
-		../../cal-pci-0000:01:00.0.bin \
-		$(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
 	$(INSTALL_DATA) \
 		$(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
 		$(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
@@ -332,9 +329,6 @@ endef
 
 define Package/ath10k-firmware-qca9984-ct/install
 	$(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
-	ln -s \
-		../../cal-pci-0000:01:00.0.bin \
-		$(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
 	$(INSTALL_DATA) \
 		$(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
 		$(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
diff --git a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index 6526212..40e1330 100644
--- a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -61,7 +61,7 @@ case "$FIRMWARE" in
 	esac
 	;;
 
-"ath10k/cal-pci-0000:01:00.0.bin")
+"ath10k/pre-cal-pci-0000:01:00.0.bin")
 	case $board in
 	c2600)
 		ath10kcal_extract "radio" 4096 12064
@@ -84,7 +84,7 @@ case "$FIRMWARE" in
 		;;
 	esac
 	;;
-"ath10k/cal-pci-0001:01:00.0.bin")
+"ath10k/pre-cal-pci-0001:01:00.0.bin")
 	case $board in
 	c2600)
 		ath10kcal_extract "radio" 20480 12064



More information about the lede-commits mailing list