From 1e33c7a8c28da7f75ceca67656132550bc2c6fa3 Mon Sep 17 00:00:00 2001 From: Bruin06 <419738327@qq.com> Date: Wed, 18 Jun 2025 14:04:19 +0800 Subject: [PATCH] Fix Bug 6.0 Signed-off-by: Bruin06 <419738327@qq.com> --- wpa_supplicant-2.9_standard/wpa_supplicant/events.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant-2.9_standard/wpa_supplicant/events.c b/wpa_supplicant-2.9_standard/wpa_supplicant/events.c index 9be14dd..acc8648 100644 --- a/wpa_supplicant-2.9_standard/wpa_supplicant/events.c +++ b/wpa_supplicant-2.9_standard/wpa_supplicant/events.c @@ -7192,6 +7192,9 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, case EVENT_INTERFACE_MAC_CHANGED: wpa_supplicant_update_mac_addr(wpa_s); wpa_sm_pmksa_cache_flush(wpa_s->wpa, NULL); +#ifdef CONFIG_OPEN_HARMONY_PATCH + restart_p2p_device(wpa_s); +#endif /* CONFIG_OPEN_HARMONY_PATCH */ break; case EVENT_INTERFACE_ENABLED: wpa_dbg(wpa_s, MSG_DEBUG, "Interface was enabled"); @@ -7227,6 +7230,9 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, wpa_supplicant_req_scan(wpa_s, 0, 0); #endif /* CONFIG_AP */ } +#ifdef CONFIG_OPEN_HARMONY_PATCH + restart_p2p_device(wpa_s); +#endif /* CONFIG_OPEN_HARMONY_PATCH */ break; case EVENT_INTERFACE_DISABLED: wpa_dbg(wpa_s, MSG_DEBUG, "Interface was disabled"); @@ -7262,9 +7268,6 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, */ p2p_stop_find(wpa_s->global->p2p); } -#ifdef CONFIG_OPEN_HARMONY_PATCH - restart_p2p_device(wpa_s); -#endif /* CONFIG_OPEN_HARMONY_PATCH */ #endif /* CONFIG_P2P */ if (wpa_s->wpa_state >= WPA_AUTHENTICATING) { -- Gitee