wlan-ap-Telecominfraproject/patches/0036-apply-ec420-changes-to-calibation.patch
John Crispin 7ae17f821b ipq807x: update kernel patches and add new boards
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00

55 lines
1.8 KiB
Diff

From c63f3fc046337f0fe79aaef03ea835cadc32aab1 Mon Sep 17 00:00:00 2001
From: Rick Sommerville <rick.sommerville@netexperience.com>
Date: Fri, 23 Oct 2020 15:03:34 -0400
Subject: [PATCH 36/40] apply ec420 changes to calibation
---
.../etc/hotplug.d/firmware/11-ath10k-caldata | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index a8ebced11a..ff77aed304 100644
--- a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -123,10 +123,13 @@ case "$FIRMWARE" in
# OEM assigns 4 sequential MACs
ath10kcal_patch_mac_crc $(macaddr_setbit_la $(macaddr_add "$(cat /sys/class/net/eth0/address)" 4))
;;
- openmesh,a62 |\
+ openmesh,a62)
+ ath10kcal_extract "0:ART" 36864 12064
+ ;;
tp-link,ap2220 |\
tp-link,ec420-g1)
ath10kcal_extract "0:ART" 36864 12064
+ ath10kcal_patch_mac_crc $(macaddr_add "$(get_tip mac_address)" 1) # 5G, wlan0
;;
esac
;;
@@ -166,9 +169,7 @@ case "$FIRMWARE" in
openmesh,a42 |\
openmesh,a62 |\
qxwlan,e2600ac-c1 |\
- qxwlan,e2600ac-c2 |\
- tp-link,ap2220 |\
- tp-link,ec420-g1)
+ qxwlan,e2600ac-c2)
ath10kcal_extract "0:ART" 4096 12064
;;
engenius,ens620ext)
@@ -194,6 +195,11 @@ case "$FIRMWARE" in
ath10kcal_extract "ART" 4096 12064
ath10kcal_patch_mac_crc $(macaddr_add $(cat /sys/class/net/eth0/address) -2)
;;
+ tp-link,ap2220 |\
+ tp-link,ec420-g1)
+ ath10kcal_extract "0:ART" 4096 12064
+ ath10kcal_patch_mac_crc $(macaddr_add "$(get_tip mac_address)" 9) #2.4G, wlan1
+ ;;
esac
;;
"ath10k/pre-cal-ahb-a800000.wifi.bin")
--
2.25.1