mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Clear wpa_s->disconnected on ctrl_iface FLUSH
This is needed to get into more consistent state after the FLUSH command. DISCONNECT followed by FLUSH could result in wpa_s->disconnected being left to 1 and this resulted in a test failure, e.g., when running wpas_ctrl_dup_network followed by wpas_ctrl_enable_disable_network where the latter was expecting ENABLE_NETWORK on a disabled network to connect automatically and that does not happen if wpa_s->disconnected == 1. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
4bd7195466
commit
97cfe110dc
@ -6011,6 +6011,8 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
wpa_s->extra_roc_dur = 0;
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
wpa_s->disconnected = 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user