[openwrt/openwrt] mvebu: Correct regulatory country of WRT3200ACM

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 11 10:38:32 EDT 2020


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/4d6ade2a228bbba730497807c47eb034d03eb05f

commit 4d6ade2a228bbba730497807c47eb034d03eb05f
Author: Kabuli Chana <newtownBuild at gmail.com>
AuthorDate: Mon Aug 31 19:12:13 2020 -0600

    mvebu: Correct regulatory country of WRT3200ACM
    
    correct oversight on setting regulatory country and mac address of wireless configuration
    change method of retrieving mac address
    
    The MAC address for eth0 is rad out of the devinfo partition in some
    other initial configuration script already.
    
    Signed-off-by: Kabuli Chana <newtownBuild at gmail.com>
---
 target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless b/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
index fcdc8e8778..2039aeaf1b 100644
--- a/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
+++ b/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
@@ -17,7 +17,7 @@ linksys,wrt1900acs|\
 linksys,wrt3200acm|\
 linksys,wrt32x)
 	SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
-	WIFIMAC2G=$(macaddr_add $(cat /sys/class/net/eth0/address) +1)
+	WIFIMAC2G=$(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) +1)
 	WIFIMAC5G=$(macaddr_add $WIFIMAC2G +1)
 	case "$SKU" in
 		AP)



More information about the lede-commits mailing list