libiwinfo: fix detection of wep encryption and open networks in nl80211 backend
This commit is contained in:
parent
6a3640cee2
commit
f812eb91ff
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue