X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fiwinfo.git;a=blobdiff_plain;f=iwinfo_lua.c;fp=iwinfo_lua.c;h=14211115c9881873b5a91e930a348876ffcf2bb5;hp=94913ac0d41e2e1a3527bf28e1735407275ae1ed;hb=fd9e17be0c43bd6b8df5371f0b353747bc563874;hpb=717ff717509e53ace280c4216d1150af5f1d1b82 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; } }