]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Wait for PD-before-join response
authorJouni Malinen <j@w1.fi>
Sun, 5 Feb 2012 18:52:24 +0000 (20:52 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 5 Feb 2012 18:52:24 +0000 (20:52 +0200)
commitf63b8542156496ba88ef9f161e5931122d7319b9
treecf548cc0a9cd2707d6942db0b05919d3d8ccc847
parentc19316354ed46e688704c1ebcf1c7efe816ddf31
P2P: Wait for PD-before-join response

Even though the Provision Discovery Response frame from PD-before-join
does not really provide any additional information, it can be better to
wait for it before starting the join operation. This adds a minimal
extra latency in the most common case and cleans up the sequence of
driver operations and debug log by avoiding potential processing of the
Provision Discovery Response while already running a scan for the actual
connection.

If transmission of Provision Discovery Request fails, join operation is
started without the additional wait. In addition, a new timeout is used
to start the join if Provision Discovery Response is lost for any
reason.

Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/p2p_supplicant.c