From: Arik Nemtsov Date: Tue, 7 Jan 2014 14:15:27 +0000 (+0200) Subject: P2P: Wait on GO Negotiation Confirm transmit X-Git-Tag: hostap_2_1~154 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=1785d2e912676cfeeacd6e18854b66d2e277b149;hp=472fa2168a950315cb939029252cd75366eb113a;p=mech_eap.git P2P: Wait on GO Negotiation Confirm transmit This reverts commit 792c8877c3e9558a6def558c6d35833a00571683 ('P2P: Send GO Negotiation Confirm without wait'). Some drivers rely on the wait period for sending packets on the off-channel. If the wait value is small, there's a race condition where the driver ROC might complete before the packet was sent out. This doesn't impede other drivers, as the wait is cancelled when a Tx-completion arrives from the remote peer. Signed-hostap: Arik Nemtsov --- diff --git a/src/p2p/p2p_go_neg.c b/src/p2p/p2p_go_neg.c index 8dee942..874f434 100644 --- a/src/p2p/p2p_go_neg.c +++ b/src/p2p/p2p_go_neg.c @@ -1037,7 +1037,7 @@ fail: else freq = dev->listen_freq; if (p2p_send_action(p2p, freq, sa, p2p->cfg->dev_addr, sa, - wpabuf_head(conf), wpabuf_len(conf), 0) < 0) { + wpabuf_head(conf), wpabuf_len(conf), 200) < 0) { p2p_dbg(p2p, "Failed to send Action frame"); p2p_go_neg_failed(p2p, dev, -1); p2p->cfg->send_action_done(p2p->cfg->cb_ctx);