X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=contrib%2Fpackage%2Fiwinfo%2Fsrc%2Fiwinfo_nl80211.c;h=4868db10e68821d6bad7f3ddaaf83e070c8e4e6a;hp=52b90122f6dd2bed7fef89517097f426e57c0dce;hb=c956319f01be752621673e5e190efe84d572039e;hpb=ced440f886cead1ae33eb1021c34131c20221dfd diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.c b/contrib/package/iwinfo/src/iwinfo_nl80211.c index 52b90122f..4868db10e 100644 --- a/contrib/package/iwinfo/src/iwinfo_nl80211.c +++ b/contrib/package/iwinfo/src/iwinfo_nl80211.c @@ -1173,11 +1173,7 @@ int nl80211_get_txpwrlist(const char *ifname, char *buf, int *len) static void nl80211_get_scancrypto(const char *spec, struct iwinfo_crypto_entry *c) { - if( strstr(spec, "OPEN") ) - { - c->enabled = 0; - } - else + if( strstr(spec, "WPA") || strstr(spec, "WEP") ) { c->enabled = 1; @@ -1218,6 +1214,10 @@ static void nl80211_get_scancrypto(const char *spec, c->group_ciphers = c->pair_ciphers; } + else + { + c->enabled = 0; + } } int nl80211_get_scanlist(const char *ifname, char *buf, int *len)