[PATCH 4/5] P2P2: Update state when Group Ownership Negotiation is done

Andrei Otcheretianski andrei.otcheretianski at intel.com
Thu Oct 23 03:45:33 PDT 2025


From: Ilan Peer <ilan.peer at intel.com>

When the Group Ownership Negotiation is done move the P2P state machine
to idle.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 src/p2p/p2p.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index a2d78db5fc..d2579e361a 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -1986,6 +1986,7 @@ void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer)
 #endif /* CONFIG_PASN */
 
 	if (p2p->go_role && peer->p2p2) {
+		p2p_set_state(p2p, P2P_IDLE);
 		p2p->cfg->set_go_security_config(p2p->cfg->cb_ctx, &res);
 		p2p->go_role = false;
 	} else {
-- 
2.49.0




More information about the Hostap mailing list