more wpa/wificonf fixes
authorFelix Fietkau <nbd@openwrt.org>
Fri, 1 Jul 2005 22:52:05 +0000 (22:52 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 1 Jul 2005 22:52:05 +0000 (22:52 +0000)
SVN-Revision: 1311

openwrt/package/wificonf/wificonf.c

index 4a5f2fc6cf18d4618bae94e7584154194ad3b9cf..79606a895d08eee742851c2b8ab53328282e2fb8 100644 (file)
@@ -155,7 +155,7 @@ void setup_bcom(int skfd, char *ifname)
 
        bcom_ioctl(skfd, ifname, WLC_DOWN, NULL, 0);
        
-       if (!nvram_enabled(wl_var("wep"))) {
+       if (nvram_match(wl_var("auth_mode"), "wpa") || nvram_match(wl_var("auth_mode"), "psk") || (nvram_get(wl_var("akm")) && !nvram_disabled(wl_var("akm")))) {
                /* Set up WPA */
                if (nvram_match(wl_var("crypto"), "tkip"))
                        val = TKIP_ENABLED;