diff --git a/iwinfo_lua.c b/iwinfo_lua.c index 94913ac..1421111 100644 --- a/iwinfo_lua.c +++ b/iwinfo_lua.c @@ -134,21 +134,21 @@ static char * iwinfo_crypto_desc(struct iwinfo_crypto_entry *c) sprintf(desc, "mixed WPA/WPA2 %s (%s)", iwinfo_crypto_print_suites(c->auth_suites), iwinfo_crypto_print_ciphers( - c->pair_ciphers & c->group_ciphers)); + c->pair_ciphers | c->group_ciphers)); break; case 2: sprintf(desc, "WPA2 %s (%s)", iwinfo_crypto_print_suites(c->auth_suites), iwinfo_crypto_print_ciphers( - c->pair_ciphers & c->group_ciphers)); + c->pair_ciphers | c->group_ciphers)); break; case 1: sprintf(desc, "WPA %s (%s)", iwinfo_crypto_print_suites(c->auth_suites), iwinfo_crypto_print_ciphers( - c->pair_ciphers & c->group_ciphers)); + c->pair_ciphers | c->group_ciphers)); break; } }