mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	ramips: fix actiontect web7200 wifi macs
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| From dccf411274a126c0f12d16ec220fbbb518858d84 Mon Sep 17 00:00:00 2001 | From c8878d6eda88d844593bb6a6e205eafc27f32b34 Mon Sep 17 00:00:00 2001 | ||||||
| From: Felix Fietkau <nbd@nbd.name> | From: Felix Fietkau <nbd@nbd.name> | ||||||
| Date: Thu, 10 Mar 2022 18:09:15 +0100 | Date: Thu, 10 Mar 2022 18:09:15 +0100 | ||||||
| Subject: [PATCH 14/14] update actiontec web7200 support | Subject: [PATCH 02/37] update actiontec web7200 support | ||||||
|  |  | ||||||
| Signed-off-by: Felix Fietkau <nbd@nbd.name> | Signed-off-by: Felix Fietkau <nbd@nbd.name> | ||||||
| --- | --- | ||||||
| @@ -16,10 +16,11 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> | |||||||
|  .../linux/ramips/files/include/nmbm/nmbm-os.h |   69 - |  .../linux/ramips/files/include/nmbm/nmbm-os.h |   69 - | ||||||
|  target/linux/ramips/files/include/nmbm/nmbm.h |  102 - |  target/linux/ramips/files/include/nmbm/nmbm.h |  102 - | ||||||
|  target/linux/ramips/image/mt7621.mk           |   20 +- |  target/linux/ramips/image/mt7621.mk           |   20 +- | ||||||
|  |  .../etc/hotplug.d/ieee80211/10_fix_wifi_mac   |    5 + | ||||||
|  .../mt7621/base-files/lib/upgrade/platform.sh |    7 +- |  .../mt7621/base-files/lib/upgrade/platform.sh |    7 +- | ||||||
|  target/linux/ramips/mt7621/config-5.4         |    8 - |  target/linux/ramips/mt7621/config-5.4         |    8 - | ||||||
|  .../499-mtd-add-nmbm-support.patch            |   21 - |  .../499-mtd-add-nmbm-support.patch            |   21 - | ||||||
|  14 files changed, 79 insertions(+), 4185 deletions(-) |  15 files changed, 84 insertions(+), 4185 deletions(-) | ||||||
|  delete mode 100644 target/linux/ramips/files/drivers/mtd/nmbm/Kconfig |  delete mode 100644 target/linux/ramips/files/drivers/mtd/nmbm/Kconfig | ||||||
|  delete mode 100644 target/linux/ramips/files/drivers/mtd/nmbm/Makefile |  delete mode 100644 target/linux/ramips/files/drivers/mtd/nmbm/Makefile | ||||||
|  delete mode 100644 target/linux/ramips/files/drivers/mtd/nmbm/nmbm-core.c |  delete mode 100644 target/linux/ramips/files/drivers/mtd/nmbm/nmbm-core.c | ||||||
| @@ -4352,6 +4353,22 @@ index 57c3efcf2b..81ef6bbd14 100644 | |||||||
|  define Device/unielec_u7621-01-16m |  define Device/unielec_u7621-01-16m | ||||||
|    $(Device/dsa-migration) |    $(Device/dsa-migration) | ||||||
|    $(Device/uimage-lzma-loader) |    $(Device/uimage-lzma-loader) | ||||||
|  | diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | ||||||
|  | index bd0f0254c6..7109a4647e 100644 | ||||||
|  | --- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | ||||||
|  | +++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | ||||||
|  | @@ -10,6 +10,11 @@ PHYNBR=${DEVPATH##*/phy} | ||||||
|  |  board=$(board_name) | ||||||
|  |   | ||||||
|  |  case "$board" in | ||||||
|  | +	actiontec,web7200) | ||||||
|  | +		wan_mac=$(mtd_get_mac_ascii u-boot-env "AeiBaseMACAddr") | ||||||
|  | +		[ "$PHYNBR" = "0" ] && macaddr_add $wan_mac 2 > /sys${DEVPATH}/macaddress | ||||||
|  | +		[ "$PHYNBR" = "1" ] && macaddr_add $wan_mac 3 > /sys${DEVPATH}/macaddress | ||||||
|  | +		;; | ||||||
|  |  	glinet,gl-mt1300) | ||||||
|  |  		[ "$PHYNBR" = "1" ] && \ | ||||||
|  |  			macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress | ||||||
| diff --git a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh | diff --git a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh | ||||||
| index 924f259e25..93f6e836dc 100755 | index 924f259e25..93f6e836dc 100755 | ||||||
| --- a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh | --- a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin