3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

ap: validate group cipher

Make sure to validate group_cipher from the STA similarly to how
akm_suites and pairwise_ciphers are validated.
This commit is contained in:
Denis Kenzior 2021-09-20 14:25:34 -05:00
parent ec1c348b4f
commit 63ef918671

View File

@ -1759,6 +1759,11 @@ static void ap_assoc_reassoc(struct sta_state *sta, bool reassoc,
err = MMPDU_REASON_CODE_INVALID_AKMP;
goto unsupported;
}
if (rsn_info.group_cipher != ap->group_cipher) {
err = MMPDU_REASON_CODE_INVALID_GROUP_CIPHER;
goto unsupported;
}
}
/* 802.11-2016 11.3.5.3 j) */