]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P2: Update state when group owner negotiation is done
authorIlan Peer <ilan.peer@intel.com>
Thu, 23 Oct 2025 10:45:33 +0000 (13:45 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 25 Jan 2026 16:56:21 +0000 (18:56 +0200)
When the group owner negotiation is done move the P2P state machine to
idle.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/p2p/p2p.c

index 711c7343c151326c1e55c8f3d39c55c1bb16f4ed..d686708c77bd9413e668c2d7bf9cce05ce985591 100644 (file)
@@ -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 {