summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/src
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-30 19:57:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-30 19:57:38 +0000
commitc956319f01be752621673e5e190efe84d572039e (patch)
treedd7529aab71318f79725689976e2643fc74087b4 /contrib/package/iwinfo/src
parentced440f886cead1ae33eb1021c34131c20221dfd (diff)
libiwinfo: properly detect open network reported by wpa_supplicant
Diffstat (limited to 'contrib/package/iwinfo/src')
-rw-r--r--contrib/package/iwinfo/src/iwinfo_nl80211.c10
1 files changed, 5 insertions, 5 deletions
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)