From 6a4920dba8a920f2952eefdeb9d48b320529ca40 Mon Sep 17 00:00:00 2001 From: Bruin06 <419738327@qq.com> Date: Fri, 15 Aug 2025 16:03:09 +0800 Subject: [PATCH] Create P2p Group Stop Listen Signed-off-by: Bruin06 <419738327@qq.com> --- wpa_supplicant-2.9_standard/src/p2p/p2p.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wpa_supplicant-2.9_standard/src/p2p/p2p.c b/wpa_supplicant-2.9_standard/src/p2p/p2p.c index c67c583..abe83b0 100644 --- a/wpa_supplicant-2.9_standard/src/p2p/p2p.c +++ b/wpa_supplicant-2.9_standard/src/p2p/p2p.c @@ -4916,6 +4916,12 @@ static void p2p_ext_listen_timeout(void *eloop_ctx, void *timeout_ctx) { struct p2p_data *p2p = eloop_ctx; +#if defined(CONFIG_OPEN_HARMONY_PATCH) && defined(CONFIG_MIRACAST_SINK_OPT) + if (!hm_need_listen(p2p)) { + p2p_err(p2p, "p2p has connect no need start listen"); + return; + } +#endif if (p2p->ext_listen_interval) { /* Schedule next extended listen timeout */ -- Gitee