aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.h
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2014-03-27 06:58:30 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-28 17:31:26 (GMT)
commitace0fbdb69b492a3aa6f24d07f0d6d4dffc4b7dc (patch)
tree2fc8d7336750e6a380c2917d5df0a450f1961d91 /wpa_supplicant/p2p_supplicant.h
parentcf15b15cc17f3e325ed8bab5effd4389afd35475 (diff)
downloadhostap-ace0fbdb69b492a3aa6f24d07f0d6d4dffc4b7dc.zip
hostap-ace0fbdb69b492a3aa6f24d07f0d6d4dffc4b7dc.tar.gz
hostap-ace0fbdb69b492a3aa6f24d07f0d6d4dffc4b7dc.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.h')
-rw-r--r--wpa_supplicant/p2p_supplicant.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h
index d3d36b1..0bf3ca9 100644
--- a/wpa_supplicant/p2p_supplicant.h
+++ b/wpa_supplicant/p2p_supplicant.h
@@ -158,6 +158,7 @@ int wpas_p2p_nfc_report_handover(struct wpa_supplicant *wpa_s, int init,
const struct wpabuf *req,
const struct wpabuf *sel, int forced_freq);
int wpas_p2p_nfc_tag_enabled(struct wpa_supplicant *wpa_s, int enabled);
+void wpas_p2p_pbc_overlap_cb(void *eloop_ctx, void *timeout_ctx);
#ifdef CONFIG_P2P
int wpas_p2p_4way_hs_failed(struct wpa_supplicant *wpa_s);