From 96e0ec99dd6b0fde30034a226213d44d6c64b4b6 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Fri, 31 Jan 2014 22:39:36 +0100 Subject: [PATCH] Update openwrt diffconfig to allow 802.11 driver to override regulatory domain stored in eeprom. The reg. domain is configured to 'NL', so wifi channels 12 and 13 can be used. --- NOTICE.txt | 2 ++ extra/openwrt-build/openwrt-diffconfig-extramini | 1 + extra/openwrt-build/openwrt-diffconfig-mini | 1 + extra/openwrt-build/openwrt-diffconfig-regular | 1 + post-install.sh | 5 ++++- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/NOTICE.txt b/NOTICE.txt index 218ce90..295cdde 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,3 +1,5 @@ +Doodle3D overrides the 802.11 regulatory domain such that channels 12 and 13 can be used. In most countries this is desired and accepted behaviour, with the notable exception being the USA. + Doodle3D uses the following external projects: Lua - Copyright (c) 1994–2013 Lua.org, PUC-Rio. - MIT license diff --git a/extra/openwrt-build/openwrt-diffconfig-extramini b/extra/openwrt-build/openwrt-diffconfig-extramini index b7eba80..b8e8531 100644 --- a/extra/openwrt-build/openwrt-diffconfig-extramini +++ b/extra/openwrt-build/openwrt-diffconfig-extramini @@ -1,6 +1,7 @@ CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y CONFIG_TARGET_ar71xx_generic_TLMR3020=y +CONFIG_ATH_USER_REGD=y # CONFIG_BUSYBOX_CONFIG_FEATURE_IPV6 is not set CONFIG_DOODLE3D_CLIENT_MINIFY_JS=y # CONFIG_IPV6 is not set diff --git a/extra/openwrt-build/openwrt-diffconfig-mini b/extra/openwrt-build/openwrt-diffconfig-mini index 2f1a68f..cd9460d 100644 --- a/extra/openwrt-build/openwrt-diffconfig-mini +++ b/extra/openwrt-build/openwrt-diffconfig-mini @@ -1,6 +1,7 @@ CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y CONFIG_TARGET_ar71xx_generic_TLMR3020=y +CONFIG_ATH_USER_REGD=y # CONFIG_BUSYBOX_CONFIG_FEATURE_IPV6 is not set CONFIG_DOODLE3D_CLIENT_MINIFY_JS=y # CONFIG_IPV6 is not set diff --git a/extra/openwrt-build/openwrt-diffconfig-regular b/extra/openwrt-build/openwrt-diffconfig-regular index adf6f65..6e01360 100644 --- a/extra/openwrt-build/openwrt-diffconfig-regular +++ b/extra/openwrt-build/openwrt-diffconfig-regular @@ -1,6 +1,7 @@ CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y CONFIG_TARGET_ar71xx_generic_TLMR3020=y +CONFIG_ATH_USER_REGD=y CONFIG_DOODLE3D_CLIENT_MINIFY_JS=y CONFIG_PACKAGE_doodle3d-client=y CONFIG_PACKAGE_kmod-usb-acm=y diff --git a/post-install.sh b/post-install.sh index e4f07bb..e090572 100644 --- a/post-install.sh +++ b/post-install.sh @@ -78,7 +78,9 @@ $IPKG_INSTROOT/etc/init.d/dhcpcheck enable if [ -z "$IPKG_INSTROOT" ]; then echo "Enabling wifi device..." - uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi + uci set wireless.@wifi-device[0].disabled=0 + uci set wireless.radio0.country='NL' + uci commit wireless; wifi addFirewallNet @@ -97,6 +99,7 @@ else uci set uhttpd.main.lua_prefix='/d3dapi' uci set wireless.@wifi-device[0].disabled=0 + uci set wireless.radio0.country='NL' # TODO: add firewall net uci set network.wlan=interface EOM