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

Stefano Cappa stefano.cappa
Thu Dec 18 05:31:46 PST 2014


Ok thank you.
I tried with this procedure, but now i can really understand my problem.

My real problem is: how can i authorize, on device 1 (GO), the connection requested by device 3 with join parameter?

Because i receive <3>P2P-PROV-DISC-PBC-REQ, but now i need to use another command to connect. The p2p_connect device3 pbc starts a new group.

This is my real problem ;)

________________________________________
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 ;)

Nothing

> 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
http://lists.shmoo.com/mailman/listinfo/hostap



More information about the Hostap mailing list