aboutsummaryrefslogtreecommitdiffstats
path: root/package/iwinfo/src/iwinfo_cli.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-23 12:18:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-23 12:18:46 +0000
commitb1af9a779fda99262632d69c085aea16e17ac809 (patch)
treeb43ee9d8c834a4490a98bd8b3715dacc88753491 /package/iwinfo/src/iwinfo_cli.c
parentb168535b100ab983ae4a76439524b59dcc996276 (diff)
downloadupstream-b1af9a779fda99262632d69c085aea16e17ac809.tar.gz
upstream-b1af9a779fda99262632d69c085aea16e17ac809.tar.bz2
upstream-b1af9a779fda99262632d69c085aea16e17ac809.zip
iwinfo: implement netlink scanning code, rework IE parsing code
SVN-Revision: 30691
Diffstat (limited to 'package/iwinfo/src/iwinfo_cli.c')
-rw-r--r--package/iwinfo/src/iwinfo_cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/iwinfo/src/iwinfo_cli.c b/package/iwinfo/src/iwinfo_cli.c
index dc8ed8b148..186cce1433 100644
--- a/package/iwinfo/src/iwinfo_cli.c
+++ b/package/iwinfo/src/iwinfo_cli.c
@@ -230,19 +230,19 @@ static char * format_encryption(struct iwinfo_crypto_entry *c)
case 3:
snprintf(buf, sizeof(buf), "mixed WPA/WPA2 %s (%s)",
format_enc_suites(c->auth_suites),
- format_enc_ciphers(c->pair_ciphers & c->group_ciphers));
+ format_enc_ciphers(c->pair_ciphers | c->group_ciphers));
break;
case 2:
snprintf(buf, sizeof(buf), "WPA2 %s (%s)",
format_enc_suites(c->auth_suites),
- format_enc_ciphers(c->pair_ciphers & c->group_ciphers));
+ format_enc_ciphers(c->pair_ciphers | c->group_ciphers));
break;
case 1:
snprintf(buf, sizeof(buf), "WPA %s (%s)",
format_enc_suites(c->auth_suites),
- format_enc_ciphers(c->pair_ciphers & c->group_ciphers));
+ format_enc_ciphers(c->pair_ciphers | c->group_ciphers));
break;
}
}