mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 01:52:51 +00:00
ipq807x: bssid was not stable on wf-194c4/8
The ART does not have valid macs in it, use the ath11k-macs fixup to work around this. Fixes: WIFI-6012 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
From 7b587e276da805d981596725d9eb5421d2d9c925 Mon Sep 17 00:00:00 2001
|
From 19c481164dc772e49e173e08d1bfd266a5f458dd Mon Sep 17 00:00:00 2001
|
||||||
From: John Crispin <john@phrozen.org>
|
From: John Crispin <john@phrozen.org>
|
||||||
Date: Sat, 18 Jul 2020 08:53:44 +0200
|
Date: Sat, 18 Jul 2020 08:53:44 +0200
|
||||||
Subject: [PATCH 01/36] ipq807x: add the Qualcomm AX target support
|
Subject: [PATCH 01/36] ipq807x: add the Qualcomm AX target support
|
||||||
@@ -14,7 +14,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
|||||||
target/linux/ipq807x/Makefile | 22 +
|
target/linux/ipq807x/Makefile | 22 +
|
||||||
.../ipq807x/base-files/etc/board.d/01_leds | 38 +
|
.../ipq807x/base-files/etc/board.d/01_leds | 38 +
|
||||||
.../ipq807x/base-files/etc/board.d/02_network | 81 +
|
.../ipq807x/base-files/etc/board.d/02_network | 81 +
|
||||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 95 +
|
.../etc/hotplug.d/firmware/10-ath11k-caldata | 111 +
|
||||||
.../ipq807x/base-files/etc/hotplug.d/net/macs | 3 +
|
.../ipq807x/base-files/etc/hotplug.d/net/macs | 3 +
|
||||||
.../ipq807x/base-files/etc/init.d/aq_phy | 16 +
|
.../ipq807x/base-files/etc/init.d/aq_phy | 16 +
|
||||||
.../ipq807x/base-files/etc/init.d/bootcount | 12 +
|
.../ipq807x/base-files/etc/init.d/bootcount | 12 +
|
||||||
@@ -66,7 +66,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
|||||||
target/linux/ipq807x/patches/112-pstore.patch | 147 +
|
target/linux/ipq807x/patches/112-pstore.patch | 147 +
|
||||||
.../ipq807x/patches/200-bpf_backport.patch | 44780 ++++++++++++++++
|
.../ipq807x/patches/200-bpf_backport.patch | 44780 ++++++++++++++++
|
||||||
toolchain/kernel-headers/Makefile | 8 +
|
toolchain/kernel-headers/Makefile | 8 +
|
||||||
61 files changed, 56687 insertions(+), 2 deletions(-)
|
61 files changed, 56703 insertions(+), 2 deletions(-)
|
||||||
create mode 100644 package/boot/uboot-envtools/files/ipq807x
|
create mode 100644 package/boot/uboot-envtools/files/ipq807x
|
||||||
create mode 100644 target/linux/ipq807x/109-logspam.patch
|
create mode 100644 target/linux/ipq807x/109-logspam.patch
|
||||||
create mode 100644 target/linux/ipq807x/Makefile
|
create mode 100644 target/linux/ipq807x/Makefile
|
||||||
@@ -431,10 +431,10 @@ index 0000000000..7772e309a3
|
|||||||
+exit 0
|
+exit 0
|
||||||
diff --git a/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
diff --git a/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
||||||
new file mode 100755
|
new file mode 100755
|
||||||
index 0000000000..1788908ab0
|
index 0000000000..016416c089
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
+++ b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
||||||
@@ -0,0 +1,95 @@
|
@@ -0,0 +1,111 @@
|
||||||
+#!/bin/sh
|
+#!/bin/sh
|
||||||
+
|
+
|
||||||
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||||
@@ -453,6 +453,18 @@ index 0000000000..1788908ab0
|
|||||||
+ echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
+ echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
+ath11k_generate_macs_wf194() {
|
||||||
|
+ touch /lib/firmware/ath11k-macs
|
||||||
|
+ mac=$(grep BaseMacAddress= /dev/mtd14 | cut -dx -f2)
|
||||||
|
+ eth=$(macaddr_canonicalize $mac)
|
||||||
|
+ mac1=$(macaddr_add $eth 2)
|
||||||
|
+ mac2=$(macaddr_add $eth 10)
|
||||||
|
+ mac3=$(macaddr_add $eth 18)
|
||||||
|
+ echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
|
+ echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
|
+ echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
|
+}
|
||||||
|
+
|
||||||
+caldata_die() {
|
+caldata_die() {
|
||||||
+ echo "caldata: " "$*"
|
+ echo "caldata: " "$*"
|
||||||
+ exit 1
|
+ exit 1
|
||||||
@@ -524,6 +536,10 @@ index 0000000000..1788908ab0
|
|||||||
+ cig,wf188n)
|
+ cig,wf188n)
|
||||||
+ ath11k_generate_macs
|
+ ath11k_generate_macs
|
||||||
+ ;;
|
+ ;;
|
||||||
|
+ cig,wf194c|\
|
||||||
|
+ cig,wf194c)
|
||||||
|
+ ath11k_generate_macs_wf194
|
||||||
|
+ ;;
|
||||||
+ esac
|
+ esac
|
||||||
+ ;;
|
+ ;;
|
||||||
+*)
|
+*)
|
||||||
|
|||||||
Reference in New Issue
Block a user