]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Do not allow reconfiguration to be started with pending auth
authorJouni Malinen <jouni@codeaurora.org>
Fri, 26 Jun 2020 17:40:40 +0000 (20:40 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 26 Jun 2020 17:40:40 +0000 (20:40 +0300)
The pending authentication exchange will make us ignore Reconfig
Authentication Request, so do not allow reconfiguration to be started in
that state.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/dpp_supplicant.c

index 6e1ff7aa592692b8a690ad6f1d5ee4dbe40920cb..8fd0d063b659282b1da888e590f247141d15ea06 100644 (file)
@@ -3620,6 +3620,12 @@ int wpas_dpp_reconfig(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
            !ssid->dpp_csign)
                return -1;
 
+       if (wpa_s->dpp_auth) {
+               wpa_printf(MSG_DEBUG,
+                          "DPP: Not ready to start reconfiguration - pending authentication exchange in progress");
+               return -1;
+       }
+
        wpas_dpp_chirp_stop(wpa_s);
        wpa_s->dpp_allowed_roles = DPP_CAPAB_ENROLLEE;
        wpa_s->dpp_qr_mutual = 0;