]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Clear push button announcement state on wpa_supplicant FLUSH
authorJouni Malinen <quic_jouni@quicinc.com>
Sat, 23 Jul 2022 20:31:46 +0000 (23:31 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 24 Jul 2022 21:23:31 +0000 (00:23 +0300)
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 <quic_jouni@quicinc.com>
wpa_supplicant/ctrl_iface.c

index 7cccc1dd781c86421ec7e6342067dfaaad6b3d9b..cacbbf48de42f77fd50979e665c93a61048fd392 100644 (file)
@@ -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);