<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hi all,</div><div><br></div><div>I would like to know if it is possible to issue the wps_pbc command to a p2p interface, from the wpa_cli prompt that has been used to create it.</div><div><br></div><div>I'll try to show you an example.</div><div>I'm working with 3 devices:</div><div>-2 Android non-rooted devices (I'll call them device1 and device2)</div><div>-1 tp link wifi card using chipset atheros installed on a Linux machine (I'll call it linux).</div><div>In particular I want linux to act as GO. </div><div><br></div><div>This is what I've done:</div><div><br></div><div>1.(linux)---->open Shell_1</div><div>2.(linux)---->run wpa_cli_1 on Shell_1 in interactive mode through the line command ./wpa_cli</div><div>3.(linux)---->execute p2p_find on prompt of the wpa_cli just launched</div><div><br></div><div>4.(device1)----->android p2p_discovery</div><div>5.(device1)----->p2p_connect(linux) through the line command p2p_connect linux_mac pbc go_intent=0</div><div><br></div><div>6.(linux)----->p2p_connect(device1) on prompt of the wpa_cli just launched through the line command p2p_connect device1_mac pbc go_intent=15</div><div>7.<----P2P_Group _1 Created----> </div><div><br></div><div>A new interface has been created: p2p-wlan0-0</div><div><br></div><div>8.(device2)----->p2p_connect(linux) (I know that actually this is a join request, I used "p2p_connect" here for a sake of simplicity )</div><div><br></div><div>The prompt of the wpa_cli launched in order to manage the first p2p_connection shows P2P_PROV_DISC_PBC_REQ.</div><div>Now I need to perform the following steps in order to connect device2 to the P2P_Group_1</div><div><br></div><div>9.(linux)---->open Shell_2</div><div>10.(linux)---->run wpa_cli_2 on Shell_2 <span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">in interactive mode </span><span style="font-size: 12pt;">through the line command ./wpa_cli -i p2p-wlan0-0</span></div><div>11.(linux)---->execute wps_pbc</div><div>12<---device2 joins P2P_Group_1----></div><div><br></div><div><br></div><div>I wish to run on the prompt of the wpa_cli_1 a command to execute wps_pbs on interface p2p-wlan0-0.</div><div>I mean something like that</div><div><br></div><div>(linux)----><span style="font-size: 12pt;">execute wps_pbc </span><span style="font-size: 12pt;">p2p-wlan0-0 </span><span style="font-size: 12pt;">on the prompt of the wpa_cli_1</span></div><div><br></div><div><br></div><div>Do I need a global control interface?</div><div>If it is, how can I configure and launch wpa_supplicant and wpa_cli to reach my goal?</div><div><br></div><div><br></div><div>Searching on this forum I found a post of a guy who had a problem similar to mine, but unfortunately  it does not solve my problem.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Andrea</div>                                          </div></body>
</html>