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)
commitbb79dc720b3c439ad9748b235061850c63d07fec
tree3d178792067c5f98893c825e9c7fb383d7fbcf8d
parent54960629190829595bf35c40a5df3683e28ed964
P2P: Fix invitation-to-running-group handling

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