libiwinfo: fix detection of wep encryption and open networks in nl80211 backend

This commit is contained in:
Jo-Philipp Wich 2011-11-08 14:04:56 +00:00
parent 6a3640cee2
commit f812eb91ff

View file

@ -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;
}