diff mbox series

[19/26] station: Use IE_CIPHER_IS_GCMP_CCMP

Message ID 20221021191307.31492-19-denkenz@gmail.com (mailing list archive)
State New
Headers show
Series [01/26] eapol: More strictly validate key_descriptor_version | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

Denis Kenzior Oct. 21, 2022, 7:13 p.m. UTC
---
 src/station.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/station.c b/src/station.c
index 11e86d1f06c2..eab16eff5afa 100644
--- a/src/station.c
+++ b/src/station.c
@@ -1167,8 +1167,7 @@  build_ie:
 	 * also indicates support.
 	 */
 	if (wiphy_supports_ext_key_id(wiphy) && bss_info.extended_key_id &&
-			(info.pairwise_ciphers & (IE_RSN_CIPHER_SUITE_CCMP |
-						  IE_RSN_CIPHER_SUITE_GCMP)))
+			IE_CIPHER_IS_GCMP_CCMP(info.pairwise_ciphers))
 		info.extended_key_id = true;
 
 	/* RSN takes priority */