mvebu: Correct regulatory country of WRT3200ACM
authorKabuli Chana <newtownBuild@gmail.com>
Tue, 1 Sep 2020 01:12:13 +0000 (19:12 -0600)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Oct 2020 14:38:03 +0000 (16:38 +0200)
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@gmail.com>
target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless

index fcdc8e87786ce2fa80003da7dddce94ed9e4c903..2039aeaf1bcc4858e24249cb34d40f39b4d1b87a 100644 (file)
@@ -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)