diff mbox series

[16/40] common: Allow WPA_CIPHER_GTK_NOT_USED in RSNE parsing

Message ID 20191215093438.10120-17-ilan.peer@intel.com
State Changes Requested
Headers show
Series Support for Pre association Security Negotiation (PASN) | expand

Commit Message

Peer, Ilan Dec. 15, 2019, 9:34 a.m. UTC
PASN authentication requires that group management cipher suite
would be set to 00-0F-AC:7 in the RSN IE, so allow this value
when parsing and validating the RSN IE.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 src/common/wpa_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/common/wpa_common.c b/src/common/wpa_common.c
index 65db96e72a..6ad9f64c98 100644
--- a/src/common/wpa_common.c
+++ b/src/common/wpa_common.c
@@ -1650,7 +1650,8 @@  int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
 
 	if (left >= 4) {
 		data->mgmt_group_cipher = rsn_selector_to_bitfield(pos);
-		if (!wpa_cipher_valid_mgmt_group(data->mgmt_group_cipher)) {
+		if (data->mgmt_group_cipher != WPA_CIPHER_GTK_NOT_USED &&
+		    !wpa_cipher_valid_mgmt_group(data->mgmt_group_cipher)) {
 			wpa_printf(MSG_DEBUG,
 				   "%s: Unsupported management group cipher 0x%x (%08x)",
 				   __func__, data->mgmt_group_cipher,