P2P: Wait on operating channel between invitation requests

If running in active GO mode to invite a device to join the group,
wait on operating channel instead of listen channel.
This commit is contained in:
Jouni Malinen 2010-07-06 20:22:31 -07:00 committed by Jouni Malinen
parent d9d6a58c8f
commit 04d8dad5c7

View file

@ -2284,6 +2284,16 @@ static void p2p_timeout_invite(struct p2p_data *p2p)
{
p2p->cfg->send_action_done(p2p->cfg->cb_ctx);
p2p_set_state(p2p, P2P_INVITE_LISTEN);
if (p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO) {
/*
* Better remain on operating channel instead of listen channel
* when running a group.
*/
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Inviting in "
"active GO role - wait on operating channel");
p2p_set_timeout(p2p, 0, 100000);
return;
}
p2p_listen_in_find(p2p);
}