summaryrefslogtreecommitdiff
path: root/package/wificonf
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-01 22:52:05 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-01 22:52:05 +0000
commita8a68dc45f5c9a8f0e9576b413c9c253fb7313b5 (patch)
tree9a4f433df0a9973852e1249502e3aed59c19d6c9 /package/wificonf
parent81f500246484cecdc8de64ff01ea93ed99d83afa (diff)
more wpa/wificonf fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1311 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wificonf')
-rw-r--r--package/wificonf/wificonf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c
index 4a5f2fc6cf..79606a895d 100644
--- a/package/wificonf/wificonf.c
+++ b/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;