]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Allow multiple scan runs to find GO for p2p_connect join
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 15 Nov 2010 14:15:38 +0000 (16:15 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 15 Nov 2010 14:15:38 +0000 (16:15 +0200)
commit9b1ab931b1121d3462da8cdf19af1f23a79fec8e
tree0391a7509a39d09b44db99f8cea717bb037ee2f2
parente8ecb5fb4927e6e5d261c9b6f7fbf0de147ca6da
P2P: Allow multiple scan runs to find GO for p2p_connect join

If the GO is not found, we cannot send Provisioning Discovery Request
frame and cannot really connect anyway. Since the Provisioning
Discovery is a mandatory part, it is better to continue join-scan
until the GO is found instead of moving to the next step where
normal connection scan is used (PD would not be used from there).

Use a limit of 10 scan attempts for p2p_connect join to avoid getting
in infinite loop trying to join. If the GO is not found with those
scans, indicate failure (P2P-GROUP-FORMATION-FAILURE) and stop the
join attempt.
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant_i.h