projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libiwinfo: properly detect open network reported by wpa_supplicant
[project/luci.git]
/
contrib
/
package
/
iwinfo
/
src
/
iwinfo_nl80211.c
diff --git
a/contrib/package/iwinfo/src/iwinfo_nl80211.c
b/contrib/package/iwinfo/src/iwinfo_nl80211.c
index
52b9012
..
4868db1
100644
(file)
--- 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)
{
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;
{
c->enabled = 1;
@@
-1218,6
+1214,10
@@
static void nl80211_get_scancrypto(const char *spec,
c->group_ciphers = c->pair_ciphers;
}
c->group_ciphers = c->pair_ciphers;
}
+ else
+ {
+ c->enabled = 0;
+ }
}
int nl80211_get_scanlist(const char *ifname, char *buf, int *len)
}
int nl80211_get_scanlist(const char *ifname, char *buf, int *len)