P2P: Fix P2P-GROUP-STARTED event for p2p_connect-join
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 4 Feb 2013 13:52:53 +0000 (15:52 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2013 13:52:53 +0000 (15:52 +0200)
commit2b79164f12d505c66a01abcacc78fc615bc31dcf
tree371542a5b9b1453ef8f75a3832539df24080f7df
parent2d9ffe1e855410839468a75cf6723ee339acdd7e
P2P: Fix P2P-GROUP-STARTED event for p2p_connect-join

Commit 50178335bff450829729c91c8af798a1d3a7b408 introduced a regression
for P2P-GROUP-STARTED event indication during p2p_connect-join when
using a separate P2P group interface. wpa_s->global->p2p_group_formation
was already set in that case to point to the group interface and this
commit changed this to point to incorrect interface. Fix this by setting
p2p_group_formation here only in case a separate group interface is not
used.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c