P2P: Fix Group ID in Invitation Request from active GO
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 27 Jun 2010 07:13:14 +0000 (00:13 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 9 Sep 2010 14:17:19 +0000 (07:17 -0700)
Need to get P2P Device Address, not the Interface Address.

wpa_supplicant/p2p_supplicant.c

index 005bc1a..45121ce 100644 (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) {