WPS: Fix clear-from-timeout handling to avoid race condition
authorJouni Malinen <j@w1.fi>
Wed, 1 Jan 2014 20:00:09 +0000 (22:00 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 1 Jan 2014 20:00:09 +0000 (22:00 +0200)
commit5890fa81d88d37f63adb2281e280a36e8f14a3d7
tree7ee4ecfac1d3eb6dd44ea0f621ddabc24a1c9a39
parent3bdf7d7f677693dce014cfb9d5adda9cd218523b
WPS: Fix clear-from-timeout handling to avoid race condition

The 100 ms timeout to clear WPS state after EAP-Failure has been
received worked otherwise fine, but it opened a race condition on
another WPS operation starting within that wait. If that happens, the
timeout will cancel that new operation unexpectedly. Fix this by
cancelling the timeout from wpas_clear_wps().

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