Like here: Automatic authentication for Android WiFi Direct I want to create a mobile ad-hoc Wifi network with Android devices. But unlike the linked question above I want
To connect another device to p2p group: on GO device type:
sudo wpa_cli wps_pbc
and on the new device u want to join:
sudo wpa_cli p2p_connect pbc join
following this site: http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_NLCP_WiFi_Direct_Configuration_Scripts#Connect_in_pbc_.28Push_button_Control.29