aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-01-23 08:21:49 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-23 08:21:49 (GMT)
commitea6e040c30881a92e88796f3b96bd7d757888b34 (patch)
tree056bf8535413ece57c1f55c1dcb53fe2bb03086b /wpa_supplicant
parentcf70d2981df1be7005fb90c2532e737ab39bc119 (diff)
downloadhostap-ea6e040c30881a92e88796f3b96bd7d757888b34.zip
hostap-ea6e040c30881a92e88796f3b96bd7d757888b34.tar.gz
hostap-ea6e040c30881a92e88796f3b96bd7d757888b34.tar.bz2
Clear more configuration parameters to default on FLUSH
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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ctrl_iface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 8582900..68157d2 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -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);