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

sae: check group number on UNSUPP_FINITE_CYCLIC_GROUP

Hostapd has now been updated to include the group number when rejecting
the connection with UNSUPP_FINITE_CYCLIC_GROUP. We still need the existing
len == 0 check because old hostapd versions will still behave this way.
This commit is contained in:
James Prestwood 2019-03-19 11:36:49 -07:00 committed by Denis Kenzior
parent 9887c376b7
commit dee6703122

View File

@ -758,6 +758,8 @@ static bool sae_verify_committed(struct sae_sm *sm, uint16_t transaction,
*/ */
if (len == 0) if (len == 0)
l_warn("AP did not include group number in response!"); l_warn("AP did not include group number in response!");
else if (len >= 2 && (l_get_le16(frame) != sm->group))
return false;
sm->group_retry++; sm->group_retry++;