libiwinfo: fix detection of wep encryption and open networks in nl80211 backend
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 8 Nov 2011 14:04:56 +0000 (14:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 8 Nov 2011 14:04:56 +0000 (14:04 +0000)
contrib/package/iwinfo/src/iwinfo_nl80211.c

index da8d5bbe2859b950c0e0bd9aa77a27ac830738e8..a27ed02e19ac0c476a005544cc558cb7bb412a9e 100644 (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;
        }