aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-07-11 13:42:13 (GMT)
committerJouni Malinen <j@w1.fi>2013-07-11 14:04:46 (GMT)
commit1075b2957169d8f9d6dddd7679339c751dc9515b (patch)
tree1f6c2089276518e7e1e17d33c38debee883c4919 /wpa_supplicant/ap.c
parentb62b29ea875b49c6007857338aff8895f363618b (diff)
downloadhostap-1075b2957169d8f9d6dddd7679339c751dc9515b.zip
hostap-1075b2957169d8f9d6dddd7679339c751dc9515b.tar.gz
hostap-1075b2957169d8f9d6dddd7679339c751dc9515b.tar.bz2
P2P: Report group formation failure on error to start GO mode
There is no need to wait for the 15 second group formation timeout before indicating P2P group formation failure if GO mode cannot be started successfully for some reason. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index bf84dc4..c48a286 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -494,6 +494,11 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
if (wpa_drv_associate(wpa_s, &params) < 0) {
wpa_msg(wpa_s, MSG_INFO, "Failed to start AP functionality");
+#ifdef CONFIG_P2P
+ if (ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION &&
+ wpa_s->global->p2p_group_formation == wpa_s)
+ wpas_p2p_group_formation_failed(wpa_s->parent);
+#endif /* CONFIG_P2P */
return -1;
}