Do not always activate WPA
authorNicolas Thill <nico@openwrt.org>
Sun, 12 Jun 2005 14:12:11 +0000 (14:12 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 12 Jun 2005 14:12:11 +0000 (14:12 +0000)
SVN-Revision: 1218

openwrt/package/wificonf/wificonf.c

index eb09769e46cd776de17fdcf3ad1dc77beaaba5ff..f96ef1524bf002e2257c1ba12c9adcd99abdc716 100644 (file)
@@ -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"))) {