]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Cancel offchannel TX wait on Invitation Response RX
authorJouni Malinen <j@w1.fi>
Sun, 20 Oct 2013 15:19:27 +0000 (18:19 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 20 Oct 2013 18:38:02 +0000 (21:38 +0300)
This fixes issues where a GO used offchannel-TX operation to send an
Invitation Request frame. Wait for the offchannel TX operation needs to
be stopped as soon as the Invitation Response frame has been received.
This addresses some issues where Probe Response frame from the GO
through the monitor interface may end up going out on a wrong channel
(the channel of this offchannel TX operation for invitation).

Signed-hostap: Jouni Malinen <j@w1.fi>

src/p2p/p2p.c

index 9b7744c00056f0bdd659b2ee39c34456405acd40..7acbc7bd7e4f4b8506fe36617a7337f18fe68b23 100644 (file)
@@ -1604,6 +1604,7 @@ static void p2p_rx_p2p_action(struct p2p_data *p2p, const u8 *sa,
                                           rx_freq);
                break;
        case P2P_INVITATION_RESP:
+               p2p->cfg->send_action_done(p2p->cfg->cb_ctx);
                p2p_process_invitation_resp(p2p, sa, data + 1, len - 1);
                break;
        case P2P_PROV_DISC_REQ: