commit 63ef918671068d33579e2d360714c44d9718abca
parent ec1c348b4fd67619fa0c2f55ae644f6a8014d971
Author: Denis Kenzior <denkenz@gmail.com>
Date: Mon, 20 Sep 2021 14:25:34 -0500
ap: validate group cipher
Make sure to validate group_cipher from the STA similarly to how
akm_suites and pairwise_ciphers are validated.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/ap.c b/src/ap.c
@@ -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) */