]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Skip Listen phase when peer is expected to be waiting
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 28 Feb 2013 20:35:11 +0000 (22:35 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 28 Feb 2013 20:35:11 +0000 (22:35 +0200)
commitfb8984fd6f4b49d9178dd87a880dd7add514b7d1
tree33e7cd665c48b09c54c6120d44d302328dd8cdfc
parent8e4839cefadda21efd993bdf14e6096fa3f4f476
P2P: Skip Listen phase when peer is expected to be waiting

In case we have replied to a peer's GO Negotiation Request frame with a
GO Negotiation Response frame using status code
info-currently-unavailable (1), the peer is likely going to wait for us
to initiate GO Negotiation on its Listen channel. We were previously
using alternativing send-GO-Neg-Req and Listen phase when providing that
response after the user had authorized the connection. However, the
Listen phase here is unnecessary in this case and will make the
connection take longer time to go through. Skip the Listen phase and
make the wait-for-GO-Neg-Resp timeout random between 100 and 200 ms to
avoid getting in sync with the peer. In practice, this will make us
retry GO Negotiation Request frames more frequently and remain on the
peer's Listen channel for most of the time when initiating GO
Negotiation after status=1 response.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c