]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Call wpas_dpp_stop() from wpas_dpp_deinit()
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 29 Nov 2017 22:11:22 +0000 (00:11 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 29 Nov 2017 22:11:22 +0000 (00:11 +0200)
This makes the full DPP deinit operation more consistent with stopping
of a single operation. In practice, this adds the new GAS client
stopping functionality.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/dpp_supplicant.c

index 11ac450db32296e2b61e04fbd3c5bd0cbb59bdfd..a6b1a58d7152ee36204404c806c4bcb11d0f20e4 100644 (file)
@@ -2500,10 +2500,8 @@ void wpas_dpp_deinit(struct wpa_supplicant *wpa_s)
        wpas_dpp_listen_stop(wpa_s);
        dpp_bootstrap_del(wpa_s, 0);
        dpp_configurator_del(wpa_s, 0);
-       dpp_auth_deinit(wpa_s->dpp_auth);
-       wpa_s->dpp_auth = NULL;
+       wpas_dpp_stop(wpa_s);
        wpas_dpp_pkex_remove(wpa_s, "*");
-       wpa_s->dpp_pkex = NULL;
        os_memset(wpa_s->dpp_intro_bssid, 0, ETH_ALEN);
        os_free(wpa_s->dpp_configurator_params);
        wpa_s->dpp_configurator_params = NULL;