Make sure that sme_set_sae_group() doesn't select a group that was
previously rejected during this instance of SAE authentication.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
int group = groups[wpa_s->sme.sae_group_index];
if (group <= 0)
break;
- if (sae_set_group(&wpa_s->sme.sae, group) == 0) {
+ if (!int_array_includes(wpa_s->sme.sae_rejected_groups,
+ group) &&
+ sae_set_group(&wpa_s->sme.sae, group) == 0) {
wpa_dbg(wpa_s, MSG_DEBUG, "SME: Selected SAE group %d",
wpa_s->sme.sae.group);
wpa_s->sme.sae.akmp = external ?