mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	ipq40xx: fix wifi mac assignment on on hfcl-ion4
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| From f68588775d1123cc2a5231ade30de46b3fc82027 Mon Sep 17 00:00:00 2001 | From 2bfcd7d31d0860c28e6c35688302e48eb2b3e2ae Mon Sep 17 00:00:00 2001 | ||||||
| From: John Crispin <john@phrozen.org> | From: John Crispin <john@phrozen.org> | ||||||
| Date: Thu, 26 Aug 2021 17:34:47 +0200 | Date: Thu, 26 Aug 2021 17:34:47 +0200 | ||||||
| Subject: [PATCH 01/13] ipq40xx: add HFCL ION4 support | Subject: [PATCH 01/14] ipq40xx: add HFCL ION4 support | ||||||
|  |  | ||||||
| Signed-off-by: John Crispin <john@phrozen.org> | Signed-off-by: John Crispin <john@phrozen.org> | ||||||
| --- | --- | ||||||
| @@ -9,12 +9,12 @@ Signed-off-by: John Crispin <john@phrozen.org> | |||||||
|  package/firmware/ipq-wifi/Makefile            |   4 +- |  package/firmware/ipq-wifi/Makefile            |   4 +- | ||||||
|  .../ipq40xx/base-files/etc/board.d/01_leds    |   4 + |  .../ipq40xx/base-files/etc/board.d/01_leds    |   4 + | ||||||
|  .../ipq40xx/base-files/etc/board.d/02_network |   1 + |  .../ipq40xx/base-files/etc/board.d/02_network |   1 + | ||||||
|  .../etc/hotplug.d/firmware/11-ath10k-caldata  |   6 + |  .../etc/hotplug.d/firmware/11-ath10k-caldata  |   8 + | ||||||
|  .../base-files/lib/upgrade/platform.sh        |   1 + |  .../base-files/lib/upgrade/platform.sh        |   1 + | ||||||
|  .../arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts   | 236 ++++++++++++++++++ |  .../arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts   | 236 ++++++++++++++++++ | ||||||
|  target/linux/ipq40xx/image/generic.mk         |  18 ++ |  target/linux/ipq40xx/image/generic.mk         |  18 ++ | ||||||
|  .../ipq40xx/patches-5.4/999-hfcl_ion.patch    |  12 + |  .../ipq40xx/patches-5.4/999-hfcl_ion.patch    |  12 + | ||||||
|  9 files changed, 285 insertions(+), 1 deletion(-) |  9 files changed, 287 insertions(+), 1 deletion(-) | ||||||
|  create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts |  create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts | ||||||
|  create mode 100644 target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch |  create mode 100644 target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch | ||||||
|  |  | ||||||
| @@ -82,25 +82,27 @@ index 5a2a3a47f7..e4b009bf93 100755 | |||||||
|  		ucidef_set_interface_wan "eth0" |  		ucidef_set_interface_wan "eth0" | ||||||
|  		;; |  		;; | ||||||
| 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 | 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 64bb4efaf8..97dd1b4039 100644 | index 64bb4efaf8..211e7cfda1 100644 | ||||||
| --- a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | --- 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 | +++ b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | ||||||
| @@ -167,6 +167,9 @@ case "$FIRMWARE" in | @@ -167,6 +167,10 @@ case "$FIRMWARE" in | ||||||
|  	tp-link,ec420-g1) |  	tp-link,ec420-g1) | ||||||
|  		caldata_extract "0:ART" 0x1000 0x2f20 |  		caldata_extract "0:ART" 0x1000 0x2f20 | ||||||
|  		;; |  		;; | ||||||
| +	hfcl,ion4) | +	hfcl,ion4) | ||||||
| +		caldata_extract "0:ART" 4096 12064 | +		caldata_extract "0:ART" 4096 12064 | ||||||
|  | +		ath10k_patch_mac $(mtd_get_mac_ascii 0:ART WLAN0_BASEMAC) | ||||||
| +		;; | +		;; | ||||||
|  	esac |  	esac | ||||||
|  	;; |  	;; | ||||||
|  "ath10k/pre-cal-ahb-a800000.wifi.bin") |  "ath10k/pre-cal-ahb-a800000.wifi.bin") | ||||||
| @@ -283,6 +286,9 @@ case "$FIRMWARE" in | @@ -283,6 +287,10 @@ case "$FIRMWARE" in | ||||||
|  		caldata_extract "ART" 0x5000 0x2f20 |  		caldata_extract "ART" 0x5000 0x2f20 | ||||||
|  		ath10k_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1) |  		ath10k_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1) | ||||||
|  		;; |  		;; | ||||||
| +	hfcl,ion4) | +	hfcl,ion4) | ||||||
| +		caldata_extract "0:ART" 20480 12064 | +		caldata_extract "0:ART" 20480 12064 | ||||||
|  | +		ath10k_patch_mac $(mtd_get_mac_ascii 0:ART WLAN1_BASEMAC) | ||||||
| +		;; | +		;; | ||||||
|  	esac |  	esac | ||||||
|  	;; |  	;; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin