mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
FT: Do not try to use FT-over-air if reassociation cannot be used
There is no point in going through FT authentication if the next step would have to use association exchange which will be rejected by the AP for FT, so only allow FT-over-air if previous BSSID is set, i.e., if reassociation can be used. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
63a7683b2d
commit
f808bd59e8
@ -460,7 +460,7 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s,
|
||||
wpa_s->sme.assoc_req_ie_len += 5;
|
||||
}
|
||||
|
||||
if (wpa_s->sme.ft_used &&
|
||||
if (wpa_s->sme.prev_bssid_set && wpa_s->sme.ft_used &&
|
||||
os_memcmp(md, wpa_s->sme.mobility_domain, 2) == 0 &&
|
||||
wpa_sm_has_ptk(wpa_s->wpa)) {
|
||||
wpa_dbg(wpa_s, MSG_DEBUG, "SME: Trying to use FT "
|
||||
|
Loading…
Reference in New Issue
Block a user