mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 19:07:47 +00:00
ipq807x: fix mac assingment on eap101
Fixes: WIFI-3487 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -178,7 +178,6 @@ detect_mac80211() {
|
|||||||
set wireless.radio${devidx}.channel=${channel}
|
set wireless.radio${devidx}.channel=${channel}
|
||||||
set wireless.radio${devidx}.band=${mode_band}
|
set wireless.radio${devidx}.band=${mode_band}
|
||||||
set wireless.radio${devidx}.htmode=$htmode
|
set wireless.radio${devidx}.htmode=$htmode
|
||||||
set wireless.radio${devidx}.num_global_macaddr=8
|
|
||||||
${scanning}
|
${scanning}
|
||||||
set wireless.radio${devidx}.disabled=1
|
set wireless.radio${devidx}.disabled=1
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From c1670dcdda1ab0f5310f76e5ae6e710bd16892c7 Mon Sep 17 00:00:00 2001
|
From 359f21e75b54b1c64fb6ba7248454c236ddbdcf0 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/38] ipq807x: add the Qualcomm AX target support
|
Subject: [PATCH 01/39] ipq807x: add the Qualcomm AX target support
|
||||||
|
|
||||||
Signed-off-by: John Crispin <john@phrozen.org>
|
Signed-off-by: John Crispin <john@phrozen.org>
|
||||||
---
|
---
|
||||||
@@ -15,7 +15,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
|||||||
.../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 +
|
||||||
.../ipq807x/base-files/etc/board.d/03_wifi | 17 +
|
.../ipq807x/base-files/etc/board.d/03_wifi | 17 +
|
||||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 111 +
|
.../etc/hotplug.d/firmware/10-ath11k-caldata | 124 +
|
||||||
.../etc/hotplug.d/firmware/11-ath10k-caldata | 16 +
|
.../etc/hotplug.d/firmware/11-ath10k-caldata | 16 +
|
||||||
.../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 | 21 +
|
.../ipq807x/base-files/etc/init.d/aq_phy | 21 +
|
||||||
@@ -60,7 +60,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
|||||||
.../ipq807x/patches/103-sercomm-wallaby.patch | 816 +
|
.../ipq807x/patches/103-sercomm-wallaby.patch | 816 +
|
||||||
target/linux/ipq807x/patches/104-wf194c.patch | 816 +
|
target/linux/ipq807x/patches/104-wf194c.patch | 816 +
|
||||||
.../patches/105-fix-dtc-gcc10-build.patch | 11 +
|
.../patches/105-fix-dtc-gcc10-build.patch | 11 +
|
||||||
target/linux/ipq807x/patches/106-eap101.patch | 993 +
|
target/linux/ipq807x/patches/106-eap101.patch | 994 +
|
||||||
.../linux/ipq807x/patches/108-log-spam.patch | 37 +
|
.../linux/ipq807x/patches/108-log-spam.patch | 37 +
|
||||||
target/linux/ipq807x/patches/109-tplink.patch | 1518 +
|
target/linux/ipq807x/patches/109-tplink.patch | 1518 +
|
||||||
.../ipq807x/patches/110-add-esmt-nand.patch | 37 +
|
.../ipq807x/patches/110-add-esmt-nand.patch | 37 +
|
||||||
@@ -68,7 +68,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 +
|
||||||
63 files changed, 56741 insertions(+), 2 deletions(-)
|
63 files changed, 56755 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
|
||||||
@@ -458,10 +458,10 @@ index 0000000000..200e43d15c
|
|||||||
+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..016416c089
|
index 0000000000..7da120854e
|
||||||
--- /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,111 @@
|
@@ -0,0 +1,124 @@
|
||||||
+#!/bin/sh
|
+#!/bin/sh
|
||||||
+
|
+
|
||||||
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||||
@@ -473,8 +473,8 @@ index 0000000000..016416c089
|
|||||||
+ touch /lib/firmware/ath11k-macs
|
+ touch /lib/firmware/ath11k-macs
|
||||||
+ eth=$(cat /sys/class/net/eth0/address)
|
+ eth=$(cat /sys/class/net/eth0/address)
|
||||||
+ mac1=$(macaddr_add $eth 2)
|
+ mac1=$(macaddr_add $eth 2)
|
||||||
+ mac2=$(macaddr_add $eth 10)
|
+ mac2=$(macaddr_add $eth 3)
|
||||||
+ mac3=$(macaddr_add $eth 18)
|
+ mac3=$(macaddr_add $eth 4)
|
||||||
+ echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath11k-macs
|
+ echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
+ echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath11k-macs
|
+ echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
+ echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
+ echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
@@ -492,6 +492,17 @@ index 0000000000..016416c089
|
|||||||
+ echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
+ echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
+ath11k_generate_macs_eap101() {
|
||||||
|
+ touch /lib/firmware/ath11k-macs
|
||||||
|
+ eth=$(cat /sys/class/net/eth0/address)
|
||||||
|
+ mac1=$(macaddr_add $eth 4)
|
||||||
|
+ mac2=$(macaddr_add $eth 3)
|
||||||
|
+ mac3=$(macaddr_add $eth 5)
|
||||||
|
+ 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
|
||||||
@@ -557,7 +568,9 @@ index 0000000000..016416c089
|
|||||||
+ ;;
|
+ ;;
|
||||||
+ath11k-macs)
|
+ath11k-macs)
|
||||||
+ case "$board" in
|
+ case "$board" in
|
||||||
+ edgecore,eap101|\
|
+ edgecore,eap101)
|
||||||
|
+ ath11k_generate_macs_eap101
|
||||||
|
+ ;;
|
||||||
+ edgecore,eap102|\
|
+ edgecore,eap102|\
|
||||||
+ edgecore,eap106|\
|
+ edgecore,eap106|\
|
||||||
+ cig,wf188n)
|
+ cig,wf188n)
|
||||||
@@ -13118,14 +13131,14 @@ index 0000000000..f91601ec59
|
|||||||
+ /* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
+ /* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
||||||
diff --git a/target/linux/ipq807x/patches/106-eap101.patch b/target/linux/ipq807x/patches/106-eap101.patch
|
diff --git a/target/linux/ipq807x/patches/106-eap101.patch b/target/linux/ipq807x/patches/106-eap101.patch
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000..188870b8dc
|
index 0000000000..27045a040f
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/target/linux/ipq807x/patches/106-eap101.patch
|
+++ b/target/linux/ipq807x/patches/106-eap101.patch
|
||||||
@@ -0,0 +1,993 @@
|
@@ -0,0 +1,994 @@
|
||||||
+Index: linux-4.4.60-qsdk-10fd7d14853b7020b804acae690c8acec5d954ce/arch/arm64/boot/dts/qcom/qcom-ipq6018-cp01-edgecore.dtsi
|
+Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/arch/arm64/boot/dts/qcom/qcom-ipq6018-cp01-edgecore.dtsi
|
||||||
+===================================================================
|
+===================================================================
|
||||||
+--- /dev/null
|
+--- /dev/null
|
||||||
++++ linux-4.4.60-qsdk-10fd7d14853b7020b804acae690c8acec5d954ce/arch/arm64/boot/dts/qcom/qcom-ipq6018-cp01-edgecore.dtsi
|
++++ linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/arch/arm64/boot/dts/qcom/qcom-ipq6018-cp01-edgecore.dtsi
|
||||||
+@@ -0,0 +1,542 @@
|
+@@ -0,0 +1,542 @@
|
||||||
++/*
|
++/*
|
||||||
++ * Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
++ * Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||||
@@ -13669,11 +13682,11 @@ index 0000000000..188870b8dc
|
|||||||
++&qpic_lcd_panel {
|
++&qpic_lcd_panel {
|
||||||
++ status = "ok";
|
++ status = "ok";
|
||||||
++};
|
++};
|
||||||
+Index: linux-4.4.60-qsdk-10fd7d14853b7020b804acae690c8acec5d954ce/arch/arm64/boot/dts/qcom/qcom-ipq6018-edgecore-eap101.dts
|
+Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/arch/arm64/boot/dts/qcom/qcom-ipq6018-edgecore-eap101.dts
|
||||||
+===================================================================
|
+===================================================================
|
||||||
+--- /dev/null
|
+--- /dev/null
|
||||||
++++ linux-4.4.60-qsdk-10fd7d14853b7020b804acae690c8acec5d954ce/arch/arm64/boot/dts/qcom/qcom-ipq6018-edgecore-eap101.dts
|
++++ linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/arch/arm64/boot/dts/qcom/qcom-ipq6018-edgecore-eap101.dts
|
||||||
+@@ -0,0 +1,441 @@
|
+@@ -0,0 +1,442 @@
|
||||||
++/dts-v1/;
|
++/dts-v1/;
|
||||||
++/*
|
++/*
|
||||||
++ * Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
++ * Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||||
@@ -13715,6 +13728,7 @@ index 0000000000..188870b8dc
|
|||||||
++ */
|
++ */
|
||||||
++ ethernet0 = "/soc/dp1";
|
++ ethernet0 = "/soc/dp1";
|
||||||
++ ethernet1 = "/soc/dp2";
|
++ ethernet1 = "/soc/dp2";
|
||||||
|
++ ethernet2 = "/soc/dp3";
|
||||||
++
|
++
|
||||||
++ led-boot = &led_power;
|
++ led-boot = &led_power;
|
||||||
++ led-failsafe = &led_power;
|
++ led-failsafe = &led_power;
|
||||||
|
|||||||
Reference in New Issue
Block a user