summaryrefslogtreecommitdiff
path: root/openwrt/package/wificonf/wificonf.c
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-06-12 14:12:11 +0000
committerNicolas Thill <nico@openwrt.org>2005-06-12 14:12:11 +0000
commitd8432f55d0c9e8284a74fc72a72980b92c155c2e (patch)
treee23391a1e32da3f0cd6fb3e456fc46a21c2f4f18 /openwrt/package/wificonf/wificonf.c
parent28774fd6017e0d1407d1514f736088f8c7c486d5 (diff)
downloadmtk-20170518-d8432f55d0c9e8284a74fc72a72980b92c155c2e.zip
mtk-20170518-d8432f55d0c9e8284a74fc72a72980b92c155c2e.tar.gz
mtk-20170518-d8432f55d0c9e8284a74fc72a72980b92c155c2e.tar.bz2
Do not always activate WPA
SVN-Revision: 1218
Diffstat (limited to 'openwrt/package/wificonf/wificonf.c')
-rw-r--r--openwrt/package/wificonf/wificonf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c
index eb09769..f96ef15 100644
--- a/openwrt/package/wificonf/wificonf.c
+++ b/openwrt/package/wificonf/wificonf.c
@@ -160,6 +160,8 @@ void setup_bcom(int skfd, char *ifname)
val = AES_ENABLED;
else if (nvram_match(wl_var("crypto"), "tkip+aes"))
val = TKIP_ENABLED | AES_ENABLED;
+ else
+ val = 0;
bcom_ioctl(skfd, ifname, WLC_SET_WSEC, &val, sizeof(val));
if (val && nvram_get(wl_var("wpa_psk"))) {