From: Felix Fietkau Date: Fri, 1 Jul 2005 22:52:05 +0000 (+0000) Subject: more wpa/wificonf fixes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6ec44901dec83817c84ae2df70b3d75db52bef2d;p=openwrt%2Fsvn-archive%2Farchive.git more wpa/wificonf fixes SVN-Revision: 1311 --- diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index 4a5f2fc6cf..79606a895d 100644 --- a/openwrt/package/wificonf/wificonf.c +++ b/openwrt/package/wificonf/wificonf.c @@ -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;