treewide: remove "+" sign for increment with macaddr_add
[openwrt/staging/jow.git] / target / linux / mvebu / cortexa9 / base-files / etc / uci-defaults / 03_wireless
index 79c74626f5237bcf9418b80b7b955ea5471e219a..f9526e3d8659dd4f1e7577cb2c4b297cef426354 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2015 OpenWrt.org
 #
@@ -15,10 +14,11 @@ linksys,wrt1200ac|\
 linksys,wrt1900ac-v1|\
 linksys,wrt1900ac-v2|\
 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)
-       WIFIMAC5G=$(macaddr_add $WIFIMAC2G +1)
+       WIFIMAC2G=$(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) 1)
+       WIFIMAC5G=$(macaddr_add $WIFIMAC2G 1)
        case "$SKU" in
                AP)
                        REGD=CN
@@ -30,7 +30,7 @@ linksys,wrt32x)
                        REGD=CA
                ;;
                EU)
-                       REGD=DE
+                       REGD=FR
                ;;
                US)
                        REGD=US