aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-04-12 15:04:14 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-04-12 15:04:14 +0000
commite926ef32b28f365a4ed0697e64def873c542677e (patch)
tree8cf118534c509a85c2e99364abafa28b6e9d9938 /target
parent867aa778f8f602c76677f8458901d336c3ab098d (diff)
downloadupstream-e926ef32b28f365a4ed0697e64def873c542677e.tar.gz
upstream-e926ef32b28f365a4ed0697e64def873c542677e.tar.bz2
upstream-e926ef32b28f365a4ed0697e64def873c542677e.zip
mvebu: handle other SKUs as well
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45396 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/mvebu/base-files/etc/uci-defaults/03_wireless13
1 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless b/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
index 89ed47c91a..ec188fb9e6 100644
--- a/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
@@ -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