[PATCH 09/12] common: Allow WPA_CIPHER_GTK_NOT_USED in RSNE parsing

Ilan Peer <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
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 <[email protected]>
---
 src/common/wpa_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/wpa_common.c b/src/common/wpa_common.c
index 6cb9180ee8..bd79575d0f 100644
--- a/src/common/wpa_common.c
+++ b/src/common/wpa_common.c
@@ -1369,7 +1369,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,
-- 
2.17.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.