P2P: Do not delay retries on failure during group formation
authorSean Lin <seanlin@qca.qualcomm.com>
Wed, 31 Jul 2013 20:09:34 +0000 (23:09 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 31 Jul 2013 20:09:34 +0000 (23:09 +0300)
commitcbf41ca79646857733273d6edf6b583c9b0e2abe
tree2e5a9f36632426d4eb8c68796712f47553e57fce
parentdc01de8a0eca13a9a2515ad33f019e0940472ab5
P2P: Do not delay retries on failure during group formation

4-way handshake may fail under extremely noisy environment and if this
happens during P2P group formation, the 10 second extra delay added in
wpas_auth_failed() can result in running over the 15 second timeout.

Avoid this by skipping the delay mechanism in wpas_auth_failed() for the
P2P group formation case. The P2P formation timeout will take care of
stopping the attempts if the failure condition does not get resolved.

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