OWE: Handle unsupported finite cyclic group with driver MLME
Handle OWE unsupported finite cyclic group in (Re)Association Request frame when not using the hostapd SME/MLME. Signed-off-by: Ashok Ponnaiah <aponnaia@codeaurora.org>
This commit is contained in:
parent
f811cc83b3
commit
a4668c6812
1 changed files with 11 additions and 4 deletions
|
@ -531,10 +531,17 @@ skip_wpa_check:
|
||||||
npos = owe_auth_req_process(hapd, sta,
|
npos = owe_auth_req_process(hapd, sta,
|
||||||
elems.owe_dh, elems.owe_dh_len,
|
elems.owe_dh, elems.owe_dh_len,
|
||||||
p, &reason);
|
p, &reason);
|
||||||
if (!npos)
|
if (npos)
|
||||||
goto fail;
|
p = npos;
|
||||||
p = npos;
|
if (!npos &&
|
||||||
if (reason != WLAN_STATUS_SUCCESS)
|
reason == WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED) {
|
||||||
|
status = WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED;
|
||||||
|
hostapd_sta_assoc(hapd, addr, reassoc, status, buf,
|
||||||
|
p - buf);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!npos || reason != WLAN_STATUS_SUCCESS)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_OWE */
|
#endif /* CONFIG_OWE */
|
||||||
|
|
Loading…
Reference in a new issue