3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-10 14:09:22 +01:00

ie: Group comments together with relevant code

This commit is contained in:
Denis Kenzior 2015-03-16 12:10:43 -05:00
parent b9007cbc9a
commit 8c172f4ec1

View File

@ -980,7 +980,6 @@ done:
* Use of CCMP as the group cipher suite with TKIP as the * Use of CCMP as the group cipher suite with TKIP as the
* pairwise cipher suite shall not be supported. * 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) info.pairwise_ciphers & IE_RSN_CIPHER_SUITE_TKIP)
return -EBADMSG; return -EBADMSG;
@ -1036,7 +1035,6 @@ 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 * Use of CCMP as the group cipher suite with TKIP as the
* pairwise cipher suite shall not be supported. * 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) info->pairwise_ciphers & IE_RSN_CIPHER_SUITE_TKIP)
return false; return false;