From f812eb91ff5671c6fe597e2a48e1695ee258740e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 8 Nov 2011 14:04:56 +0000 Subject: libiwinfo: fix detection of wep encryption and open networks in nl80211 backend --- contrib/package/iwinfo/src/iwinfo_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/package/iwinfo') diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.c b/contrib/package/iwinfo/src/iwinfo_nl80211.c index da8d5bbe28..a27ed02e19 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; } -- cgit v1.2.3