wpa_cli: connect 3 device in a p2p group with WiFi Direct

Stefano Cappa stefano.cappa
Fri Dec 19 02:38:18 PST 2014

Hi, i'm blocked at the same point since monday :( I want to die, now ;)
I'm using one Nexus 5 and 2 Galaxy nexus s4 with KITKAT.

I followed the procedure explained by Jouni Malinen in the previous post.
This is the procedure that i'm following:

device1) p2p_connect "address_2" pbc persistent     ------> device 1 this is the GO
device2) p2p_connect "address_1" pbc persistent     ------> OK, i get AP-STA-CONNECTED

device1) wps_pbc
device3) p2p_connect "address_1" pbc persistent join     -------> on device 1 i receive <3>P2P-PROV-DISC-PBC-REQ

And after some seconds i receive on device 3:
<3>P2P: No pending Group Formation - ignore group formation failure notification
<3>P2P-GROUP-REMOVED p2p-wlan0-0 client reason=FORMATION_FAILED

Please help me.

Thank u very much,
Stefano Cappa

Da: hostap-bounces at lists.shmoo.com <hostap-bounces at lists.shmoo.com> per conto di Jouni Malinen <j at w1.fi>
Inviato: mercoled? 17 dicembre 2014 18.46
A: hostap at lists.shmoo.com
Oggetto: Re: wpa_cli: connect 3 device in a p2p group with WiFi Direct

On Wed, Dec 17, 2014 at 04:27:11PM +0000, Stefano Cappa wrote:
> i can connect two p2p Android devices with this commands:
> device1) p2p_connect "address_2" pbc persistent
> device2) p2p_connect "address_1" pbc persistent

> With this two commands, on device 1 (Group Owner) i get this message:
> AP-STA-CONNECTED "address_2" p2p_dev_addr="address_2"

> But now i have another Android device, called for example "device3".

> Which is the correct commands on device 1, 2 and 3 to create a group of three devices where device 1 is the GO?
> device1) ????

WPS_PBC or WPS_PIN on the group interface to authorize a new P2P Device
to join the group as a client.

> device2) probably nothing, because is only a client ;)


> device3) ????

P2P_CONNECT with " join" added to the end to request joining an existing
group rather than initiating a GO Negotiation to form a new group.

(and likely that dev3 starting first and dev1 reacting to the message
indicating that someone else wants to join)

Jouni Malinen                                            PGP id EFC895FA
HostAP mailing list
HostAP at lists.shmoo.com

More information about the Hostap mailing list