From: Jouni Malinen Date: Fri, 4 Jan 2019 18:28:56 +0000 (+0200) Subject: FT: Do not try to use FT-over-air if reassociation cannot be used X-Git-Tag: hostap_2_8~578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f808bd59e8c707f35ba34af14925894f83061d0f;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index b61e0c33c..11ef5b7d6 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -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 "