summaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-08 14:04:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-08 14:04:56 +0000
commitf812eb91ff5671c6fe597e2a48e1695ee258740e (patch)
tree128d40e60e20b540a1e7462c42e7d2b23df7f9aa /contrib
parent6a3640cee27eedc55a6f8f5e4bac3041ab82a705 (diff)
libiwinfo: fix detection of wep encryption and open networks in nl80211 backend
Diffstat (limited to 'contrib')
-rw-r--r--contrib/package/iwinfo/src/iwinfo_nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.c b/contrib/package/iwinfo/src/iwinfo_nl80211.c
index da8d5bbe2..a27ed02e1 100644
--- a/contrib/package/iwinfo/src/iwinfo_nl80211.c
+++ b/contrib/package/iwinfo/src/iwinfo_nl80211.c
@@ -1028,7 +1028,7 @@ int nl80211_get_encryption(const char *ifname, char *buf)
}
c->group_ciphers = c->pair_ciphers;
- c->enabled = (c->auth_algs || c->auth_suites) ? 1 : 0;
+ c->enabled = (c->wpa_version || c->pair_ciphers) ? 1 : 0;
return 0;
}