[PATCH] Add support of Passphrase Param in P2P group add command

Jouni Malinen j at w1.fi
Wed Jun 10 17:06:47 EDT 2015


On Mon, Jun 08, 2015 at 09:48:52AM +0530, Maneesh Jain wrote:
> This patch is to add "passphrase" parameter in
> "p2p_group_add" command. It helps application
> to configure its own passphrase while creating
> the group.
> It is most usefull in p2p legacy connection

In addition to my previous comments on the proposed changes, please note
that it is already possible to set the passphrase by adding a persistent
group profile separately. As such, it may not be necessary to extend
p2p_group_add for this.

For example:

ADD_NETWORK
SET_NETWORK 0 ssid "DIRECT-ab"
SET_NETWORK 0 psk "passphrase here"
SET_NETWORK 0 mode 3
SET_NETWORK 0 disabled 2
P2P_GROUP_ADD persistent=0 freq=2412

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list