mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-17 01:25:25 +00:00
54 lines
1.6 KiB
Diff
54 lines
1.6 KiB
Diff
From 15f6e1be7a0bb3d2ee4d68b37a44b149a2b19406 Mon Sep 17 00:00:00 2001
|
|
From: "GL.iNet-Xinfa.Deng" <xinfa.deng@gl-inet.com>
|
|
Date: Fri, 12 Aug 2022 10:38:58 +0800
|
|
Subject: [PATCH] fix: axt1800 wifi mac detect
|
|
|
|
---
|
|
.../base-files/etc/hotplug.d/firmware/10-ath11k-caldata | 16 ++++++++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/feeds/ipq807x/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata b/feeds/ipq807x/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
|
index 9930f41..8a2254b 100755
|
|
--- a/feeds/ipq807x/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
|
+++ b/feeds/ipq807x/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
|
@@ -49,6 +49,17 @@ ath11k_generate_macs_ion4x() {
|
|
echo -ne \\x${wifimac2//:/\\x} >> /lib/firmware/ath11k-macs
|
|
}
|
|
|
|
+ath11k_generate_macs_gl_axt1800() {
|
|
+ mac=$(cat /proc/gl-hw-info/device_mac)
|
|
+ [ -z "$mac" ] && ath11k_generate_macs || {
|
|
+ touch /lib/firmware/ath11k-macs
|
|
+ mac1=$(macaddr_add $mac 2)
|
|
+ mac2=$(macaddr_add $mac 3)
|
|
+ echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath11k-macs
|
|
+ echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath11k-macs
|
|
+ }
|
|
+}
|
|
+
|
|
caldata_die() {
|
|
echo "caldata: " "$*"
|
|
exit 1
|
|
@@ -98,6 +109,7 @@ case "$FIRMWARE" in
|
|
wallys,dr6018-v4|\
|
|
qcom,ipq6018-cp01|\
|
|
xiaomi,ax1800|\
|
|
+ glinet,axt1800|\
|
|
glinet,ax1800)
|
|
caldata_extract "0:ART" 0x1000 0x20000
|
|
;;
|
|
@@ -164,6 +176,10 @@ ath11k-macs)
|
|
cig,wf194c)
|
|
ath11k_generate_macs_wf194
|
|
;;
|
|
+ glinet,ax1800|\
|
|
+ glinet,axt1800)
|
|
+ ath11k_generate_macs_gl_axt1800
|
|
+ ;;
|
|
esac
|
|
;;
|
|
*)
|
|
--
|
|
2.7.4
|
|
|