luci-0.10: merge r7897
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 8 Nov 2011 14:06:49 +0000 (14:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 8 Nov 2011 14:06:49 +0000 (14:06 +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;
        }