From 29a89d2a8b4edb4202b6f58f4f1ab0a7adf80a87 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 16 Mar 2015 12:12:59 -0500 Subject: [PATCH] ie: There can be only one group_cipher So the use of & operation is unneeded. A more correct way is to use the equals operator. --- src/ie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ie.c b/src/ie.c index 0a008047..492c8193 100644 --- a/src/ie.c +++ b/src/ie.c @@ -1035,7 +1035,7 @@ bool ie_build_wpa(const struct ie_rsn_info *info, uint8_t *to) * Use of CCMP as the group cipher suite with TKIP as the * pairwise cipher suite shall not be supported. */ - if (info->group_cipher & IE_RSN_CIPHER_SUITE_CCMP && + if (info->group_cipher == IE_RSN_CIPHER_SUITE_CCMP && info->pairwise_ciphers & IE_RSN_CIPHER_SUITE_TKIP) return false;