From: Jouni Malinen Date: Sat, 23 Jul 2022 20:31:46 +0000 (+0300) Subject: DPP: Clear push button announcement state on wpa_supplicant FLUSH X-Git-Tag: hostap_2_11~1806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=def33101c8601993f314d6f98ffa7a1cbad35b07;p=thirdparty%2Fhostap.git DPP: Clear push button announcement state on wpa_supplicant FLUSH This was already done in hostapd and same is needed for wpa_supplicant to avoid testing issues due to session overlap detection from previous test cases. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 7cccc1dd7..cacbbf48d 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -8441,6 +8441,19 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s) wpas_dpp_chirp_stop(wpa_s); wpa_s->dpp_pfs_fallback = 0; #endif /* CONFIG_DPP2 */ +#ifdef CONFIG_DPP3 + { + int i; + + for (i = 0; i < DPP_PB_INFO_COUNT; i++) { + struct dpp_pb_info *info; + + info = &wpa_s->dpp_pb[i]; + info->rx_time.sec = 0; + info->rx_time.usec = 0; + } + } +#endif /* CONFIG_DPP3 */ #ifdef CONFIG_TESTING_OPTIONS os_memset(dpp_pkex_own_mac_override, 0, ETH_ALEN); os_memset(dpp_pkex_peer_mac_override, 0, ETH_ALEN);