]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Fix invitation-to-running-group handling
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 16 Nov 2010 13:22:06 +0000 (15:22 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 16 Nov 2010 13:22:06 +0000 (15:22 +0200)
The pending_invite_ssid_id of -1 (running group, not persistent) was
being stored incorrectly in the group interface, not device interface
(i.e., parent of the group interface) and consequently, the incorrect
information was used when processing the Invitation Response.

If there was a persistent group credentials stored with network id
0, those were used instead to try to set up a persistent group
instead of using the already running group.

wpa_supplicant/p2p_supplicant.c

index fe1577e651833a8a2fea38f752a7f0bce11abda5..f12156799cb38f38eeea39bd643f6118e6e234ba 100644 (file)
@@ -3506,7 +3506,7 @@ int wpas_p2p_invite_group(struct wpa_supplicant *wpa_s, const char *ifname,
                    !is_zero_ether_addr(wpa_s->go_dev_addr))
                        go_dev_addr = wpa_s->go_dev_addr;
        }
-       wpa_s->pending_invite_ssid_id = -1;
+       wpa_s->parent->pending_invite_ssid_id = -1;
 
        return p2p_invite(wpa_s->global->p2p, peer_addr, role, bssid,
                          ssid->ssid, ssid->ssid_len, wpa_s->assoc_freq,