]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Do not try to use FT-over-air if reassociation cannot be used
authorJouni Malinen <j@w1.fi>
Fri, 4 Jan 2019 18:28:56 +0000 (20:28 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Jan 2019 21:22:46 +0000 (23:22 +0200)
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>
wpa_supplicant/sme.c

index b61e0c33c285f38a8458ade09f23f460cf1a6af3..11ef5b7d633adc6bf539b77be80aa36614206fda 100644 (file)
@@ -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 "