summaryrefslogtreecommitdiffstats
path: root/openwrt
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
commitf76b9a917c1ca0af6c80ec71ac0f7328ec574e29 (patch)
treeac98862ec78070fcddbb61912ae69688f096f24c /openwrt
parent33c5b24bff3264447f8a0efd48df48ceec8685fb (diff)
more wpa/wificonf fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1311 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/package/wificonf/wificonf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c
index 4a5f2fc6c..79606a895 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;