mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 19:07:47 +00:00
ucentral: development update
* fix mac assign on ath11k Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From d3da4b4a61bba6ac57f999cffb2341b52d969c49 Mon Sep 17 00:00:00 2001
|
||||
From 5a812a3cefe635673c88413322c9ad0b93caa3e2 Mon Sep 17 00:00:00 2001
|
||||
From: John Crispin <john@phrozen.org>
|
||||
Date: Sat, 18 Jul 2020 08:53:44 +0200
|
||||
Subject: [PATCH 01/23] ipq807x: add the Qualcomm AX target support
|
||||
Subject: [PATCH 21/42] ipq807x: add the Qualcomm AX target support
|
||||
|
||||
Signed-off-by: John Crispin <john@phrozen.org>
|
||||
---
|
||||
@@ -13,7 +13,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
target/linux/ipq807x/Makefile | 22 +
|
||||
.../ipq807x/base-files/etc/board.d/01_leds | 36 +
|
||||
.../ipq807x/base-files/etc/board.d/02_network | 77 +
|
||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 97 ++
|
||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 89 +
|
||||
.../ipq807x/base-files/etc/init.d/aq_phy | 15 +
|
||||
.../ipq807x/base-files/etc/init.d/bootcount | 12 +
|
||||
.../linux/ipq807x/base-files/etc/init.d/wdt | 14 +
|
||||
@@ -52,7 +52,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
.../linux/ipq807x/patches/108-log-spam.patch | 37 +
|
||||
target/linux/ipq807x/patches/109-tplink.patch | 1518 +++++++++++++++++
|
||||
.../ipq807x/patches/110-add-esmt-nand.patch | 37 +
|
||||
47 files changed, 9337 insertions(+), 1 deletion(-)
|
||||
47 files changed, 9329 insertions(+), 1 deletion(-)
|
||||
create mode 100644 package/boot/uboot-envtools/files/ipq807x
|
||||
create mode 100644 target/linux/ipq807x/109-logspam.patch
|
||||
create mode 100644 target/linux/ipq807x/Makefile
|
||||
@@ -261,7 +261,7 @@ index 0000000000..66031ace35
|
||||
+$(eval $(call BuildTarget))
|
||||
diff --git a/target/linux/ipq807x/base-files/etc/board.d/01_leds b/target/linux/ipq807x/base-files/etc/board.d/01_leds
|
||||
new file mode 100755
|
||||
index 0000000000..35b4d9b529
|
||||
index 0000000000..0bfa04d614
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/board.d/01_leds
|
||||
@@ -0,0 +1,36 @@
|
||||
@@ -386,10 +386,10 @@ index 0000000000..eaa440943b
|
||||
+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
|
||||
new file mode 100755
|
||||
index 0000000000..ea23dc7a58
|
||||
index 0000000000..93f429ec51
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
||||
@@ -0,0 +1,97 @@
|
||||
@@ -0,0 +1,89 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
@@ -397,23 +397,15 @@ index 0000000000..ea23dc7a58
|
||||
+. /lib/functions.sh
|
||||
+. /lib/functions/system.sh
|
||||
+
|
||||
+macaddr_setup() {
|
||||
+ local mac=$1
|
||||
+ local val=$2
|
||||
+ local oui=${mac%:*:*}
|
||||
+ local nic=$(echo $mac | cut -d: -f 5)
|
||||
+
|
||||
+ nic=$(printf "%02x" $((0x${nic//:/} + $val & 0xff)) | sed 's/^\(.\{2\}\)\(.\{2\}\)\(.\{2\}\)/\1:\2:\3/')
|
||||
+ echo $oui:$nic:01
|
||||
+}
|
||||
+
|
||||
+ath11k_generate_macs() {
|
||||
+ touch /lib/firmware/ath11k-macs
|
||||
+ eth=$(cat /sys/class/net/eth0/address)
|
||||
+ for a in `seq 1 3`; do
|
||||
+ m=$(macaddr_setup ${eth} $a)
|
||||
+ echo -ne \\x${m//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
+ done
|
||||
+ 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() {
|
||||
|
||||
Reference in New Issue
Block a user