]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear more configuration parameters to default on FLUSH
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Jan 2014 08:21:49 +0000 (10:21 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 23 Jan 2014 08:21:49 +0000 (10:21 +0200)
This makes it more convenient for test scripts to change parameters for
a specific test case without having to separately clear them between
each test case.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/ctrl_iface.c

index 85829005afc2280710f6ce248faa18426a6a6d0b..68157d23c3f86f1076de3bd43573ffbae6fd7667 100644 (file)
@@ -5315,6 +5315,9 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
        wpa_supplicant_ctrl_iface_remove_network(wpa_s, "all");
        wpa_supplicant_ctrl_iface_remove_cred(wpa_s, "all");
        wpa_config_flush_blobs(wpa_s->conf);
+       wpa_s->conf->auto_interworking = 0;
+       wpa_s->conf->okc = 0;
+       wpa_s->conf->pmf = 0;
 
        wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME, 43200);
        wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD, 70);