P2P: Allow older scan results to improve p2p_connect-auto robustness
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 8 May 2012 14:13:56 +0000 (17:13 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 8 May 2012 14:38:57 +0000 (17:38 +0300)
commitaa9bb7644b0f7acbc9403189f0c47c17079205bc
tree0439cfa060d72564f904c561134a4f76fa1fbcbb
parent701fe506c80fe864e85f2647f8a1b1c76497cfed
P2P: Allow older scan results to improve p2p_connect-auto robustness

Previusly the peer was assumed to not be operating a GO if the BSS entry
for it was not updated in the single scan run started by
p2p_connect-auto. This is not very robust since a scan may miss the peer
if either a Probe Request or Probe Response frame is lost. Improve
robustness by assuming the peer is still operating the GO and starting
the join operation. If the GO is not found during PD-for-join or the
single-channel scans during the join, fall back to GO Negotiation.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/wpa_supplicant_i.h