aboutsummaryrefslogtreecommitdiffstats
path: root/package/wificonf
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-07-01 22:52:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-07-01 22:52:05 +0000
commit1c3be046b94aa1632d7cbaca9f696e8ad8b62487 (patch)
tree9a4f433df0a9973852e1249502e3aed59c19d6c9 /package/wificonf
parent976744540217ae7aa3ca8d6c5bedc10a7f135615 (diff)
downloadupstream-1c3be046b94aa1632d7cbaca9f696e8ad8b62487.tar.gz
upstream-1c3be046b94aa1632d7cbaca9f696e8ad8b62487.tar.bz2
upstream-1c3be046b94aa1632d7cbaca9f696e8ad8b62487.zip
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;