P2P: Fix remain-on-channel abort race
authorJohannes Berg <johannes.berg@intel.com>
Sun, 10 Oct 2010 14:52:13 +0000 (17:52 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 10 Oct 2010 14:52:13 +0000 (17:52 +0300)
commit6cb22d2fd19a032f1c85c79dbd0ee7d43b6a1a83
treea4a4467142cb80e3241f9e7a449fdc30c46022cc
parent6ee04cfcf44becffa1e7c20ccb3caaef4bdbe356
P2P: Fix remain-on-channel abort race

When the P2P state machine requests a remain- on-channel, there's a
potential race where it can then request a stop before the r-o-c has
actually started, in which case the stop will not be processed. Fix
that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
wpa_supplicant/p2p_supplicant.c