path: root/wpa_supplicant/events.c
diff options
authorJouni Malinen <jouni@qca.qualcomm.com>2012-05-08 14:13:56 (GMT)
committerJouni Malinen <j@w1.fi>2012-05-08 14:38:57 (GMT)
commitaa9bb7644b0f7acbc9403189f0c47c17079205bc (patch)
tree0439cfa060d72564f904c561134a4f76fa1fbcbb /wpa_supplicant/events.c
parent701fe506c80fe864e85f2647f8a1b1c76497cfed (diff)
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>
Diffstat (limited to 'wpa_supplicant/events.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 8031936..e8cf326 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1131,6 +1131,9 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
int timeout_sec = wpa_s->scan_interval;
int timeout_usec = 0;
#ifdef CONFIG_P2P
+ if (wpas_p2p_scan_no_go_seen(wpa_s) == 1)
+ return 0;
if (wpa_s->p2p_in_provisioning) {
* Use shorter wait during P2P Provisioning