mvebu: handle other SKUs as well
authorImre Kaloz <kaloz@openwrt.org>
Sun, 12 Apr 2015 15:04:14 +0000 (15:04 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Sun, 12 Apr 2015 15:04:14 +0000 (15:04 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45396

target/linux/mvebu/base-files/etc/uci-defaults/03_wireless

index 89ed47c91aea9d5f4538225b8e47412509cd991f..ec188fb9e635eb25347bdcf5410a3e10e17a990d 100644 (file)
@@ -13,12 +13,21 @@ case "$board" in
 armada-xp-mamba)
        SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
        case "$SKU" in
-               US)
-                       REGD=US
+               AP)
+                       REGD=CN
+               ;;
+               AU)
+                       REGD=AU
+               ;;
+               CA)
+                       REGD=CA
                ;;
                EU)
                        REGD=DE
                ;;
+               US)
+                       REGD=US
+               ;;
        esac
        uci get wireless.radio0.country || uci set wireless.radio0.country=$REGD
        uci get wireless.radio1.country || uci set wireless.radio1.country=$REGD