aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu
diff options
context:
space:
mode:
authorKabuli Chana <newtownBuild@gmail.com>2020-08-31 19:12:13 -0600
committerHauke Mehrtens <hauke@hauke-m.de>2020-10-11 16:38:03 +0200
commit4d6ade2a228bbba730497807c47eb034d03eb05f (patch)
tree082503846d85e2468c1163bbf9576a83e377cc60 /target/linux/mvebu
parentc5bd4dde3227d04bb27d25bf6e8db419d6d5cd97 (diff)
downloadupstream-4d6ade2a228bbba730497807c47eb034d03eb05f.tar.gz
upstream-4d6ade2a228bbba730497807c47eb034d03eb05f.tar.bz2
upstream-4d6ade2a228bbba730497807c47eb034d03eb05f.zip
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@gmail.com>
Diffstat (limited to 'target/linux/mvebu')
-rw-r--r--target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless2
1 files changed, 1 insertions, 1 deletions
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)