P2P: Fix Group ID in Invitation Request from active GO

Need to get P2P Device Address, not the Interface Address.
This commit is contained in:
Jouni Malinen 2010-06-27 00:13:14 -07:00 committed by Jouni Malinen
parent 108def931e
commit 2e062d5d74

View file

@ -3099,7 +3099,7 @@ int wpas_p2p_invite_group(struct wpa_supplicant *wpa_s, const char *ifname,
role = P2P_INVITE_ROLE_ACTIVE_GO;
bssid = wpa_s->own_addr;
if (go_dev_addr == NULL)
go_dev_addr = wpa_s->own_addr;
go_dev_addr = wpa_s->parent->own_addr;
} else {
role = P2P_INVITE_ROLE_CLIENT;
if (wpa_s->wpa_state < WPA_ASSOCIATED) {