Clear RSN preauth and PMKSA cache state on FLUSH command
There is no need for this state to maintained when the wpa_supplicant FLUSH ctrl_iface command is used to request flushing of all state. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
499c5e9dc6
commit
b925506a91
1 changed files with 3 additions and 0 deletions
|
@ -5967,6 +5967,9 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
|
||||||
wpa_s->conf->auto_interworking = 0;
|
wpa_s->conf->auto_interworking = 0;
|
||||||
wpa_s->conf->okc = 0;
|
wpa_s->conf->okc = 0;
|
||||||
|
|
||||||
|
wpa_sm_pmksa_cache_flush(wpa_s->wpa, NULL);
|
||||||
|
rsn_preauth_deinit(wpa_s->wpa);
|
||||||
|
|
||||||
wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME, 43200);
|
wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME, 43200);
|
||||||
wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD, 70);
|
wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD, 70);
|
||||||
wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT, 60);
|
wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT, 60);
|
||||||
|
|
Loading…
Reference in a new issue