mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 18:52:47 +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:
parent
ec1c348b4f
commit
63ef918671
5
src/ap.c
5
src/ap.c
@ -1759,6 +1759,11 @@ static void ap_assoc_reassoc(struct sta_state *sta, bool reassoc,
|
|||||||
err = MMPDU_REASON_CODE_INVALID_AKMP;
|
err = MMPDU_REASON_CODE_INVALID_AKMP;
|
||||||
goto unsupported;
|
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) */
|
/* 802.11-2016 11.3.5.3 j) */
|
||||||
|
Loading…
Reference in New Issue
Block a user