P2P: Fix segfault when PBC overlap is detected
authorAvraham Stern <avraham.stern@intel.com>
Thu, 27 Mar 2014 06:58:30 +0000 (08:58 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 28 Mar 2014 17:31:26 +0000 (19:31 +0200)
commitace0fbdb69b492a3aa6f24d07f0d6d4dffc4b7dc
tree2fc8d7336750e6a380c2917d5df0a450f1961d91
parentcf15b15cc17f3e325ed8bab5effd4389afd35475
P2P: Fix segfault when PBC overlap is detected

If a separate P2P group interface is used, PBC overlap during group
formation causes the group interface to be removed, which ends up with
the interface context becoming invalid. Fix this by scheduling a timeout
to process the PBC overlap and interface removal instead of removing the
interface directly before the connection operation has returned.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/wps_supplicant.c