From patchwork Thu May 17 20:42:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: P2P: Fix P2P Group Formation to register and cancel timeouts on parent only. Date: Thu, 17 May 2012 10:42:40 -0000 From: nirav shah X-Patchwork-Id: 160014 Message-Id: <1337287360-15201-1-git-send-email-nirav.j2.shah@intel.com> To: hostap@lists.shmoo.com The fix 361cdf34 extends the use of group formation timeout for the way handshake but the register is done on the group_interface while the cancel is done on the parent interface. Correcting the register to set the eloop timeout on parent. Signed-hostap: Nirav Shah --- wpa_supplicant/p2p_supplicant.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 44aadf1..d41a8dc 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -3743,7 +3743,7 @@ void wpas_p2p_wps_success(struct wpa_supplicant *wpa_s, const u8 *peer_addr, */ eloop_register_timeout(P2P_MAX_INITIAL_CONN_WAIT, 0, wpas_p2p_group_formation_timeout, - wpa_s, NULL); + wpa_s->parent, NULL); } if (wpa_s->global->p2p) p2p_wps_success_cb(wpa_s->global->p2p, peer_addr);