<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,</div><div><br></div><div>first of all I have to point out that versions 2.4 and 2.5 of wpa_supplicant with global control interface configuration still block my computer (I mean that I need to restart it every time my wifi card receives a GO Negotiation request).</div><div><br></div><div>For this reason I 've decided to use the versione 2.0 and that's what I did.</div><div><br></div><div>asd@asd:~/Downloads/wpa_supplicant-2.0_modified/wpa_supplicant$ sudo ./wpa_supplicant -g/var/run/wpa_supplicant-global -iwlan2 -c/etc/p2p.conf -Dnl80211 -dt -f/var/log/deb_wpa_supplican.log</div><div><br></div><div><br></div><div>asd@asd:~/Downloads/wpa_supplicant-2.0_modified/wpa_supplicant$ sudo ./wpa_cli -g/var/run/wpa_supplicant-global</div><div>wpa_cli v2.0</div><div>Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors</div><div><br></div><div>This software may be distributed under the terms of the BSD license.</div><div>See README for more details.</div><div><br></div><div><br></div><div>Selected interface 'wlan2'</div><div><br></div><div>Interactive mode</div><div><br></div><div>> p2p_find</div><div>OK</div><div><3>P2P-DEVICE-FOUND ae:22:0b:a6:8d:59 p2p_dev_addr=ae:22:0b:a6:8d:59 pri_dev_type=10-0050F204-5 name='Android_281c' config_methods=0x188 dev_capab=0x25 group_capab=0x0</div><div><3>P2P-PROV-DISC-PBC-REQ ae:22:0b:a6:8d:59 p2p_dev_addr=ae:22:0b:a6:8d:59 pri_dev_type=10-0050F204-5 name='Android_281c' config_methods=0x188 dev_capab=0x25 group_capab=0x0</div><div><3>P2P-PROV-DISC-PBC-REQ ae:22:0b:a6:8d:59 p2p_dev_addr=ae:22:0b:a6:8d:59 pri_dev_type=10-0050F204-5 name='Android_281c' config_methods=0x188 dev_capab=0x25 group_capab=0x0</div><div><3>P2P-PROV-DISC-PBC-REQ ae:22:0b:a6:8d:59 p2p_dev_addr=ae:22:0b:a6:8d:59 pri_dev_type=10-0050F204-5 name='Android_281c' config_methods=0x188 dev_capab=0x25 group_capab=0x0</div><div><3>P2P-GO-NEG-REQUEST ae:22:0b:a6:8d:59 dev_passwd_id=4</div><div><3>P2P-FIND-STOPPED </div><div>OK</div><div><3>P2P-GO-NEG-SUCCESS </div><div><3>P2P-GROUP-FORMATION-SUCCESS </div><div><3>P2P-GROUP-STARTED p2p-wlan2-0 GO ssid="DIRECT-iP" freq=2462 passphrase="rFHiJRhB" go_dev_addr=64:70:02:23:0c:e1 [PERSISTENT]</div><div><3>AP-STA-CONNECTED ae:22:0b:a6:0d:59 p2p_dev_addr=ae:22:0b:a6:8d:59</div><div>OK</div><div>/*at this point I <span style="font-size: 12pt;">manually</span><span style="font-size: 12pt;"> launch a dhcp server to give an ip to GO's client*/ </span></div><div>> > IFNAME=p2p-wlan2-0 wps_pbc</div><div>unknown command</div><div>/*and if I use raw...*/</div><div>> raw IFNAME=wlan2 status</div><div>UNKNOWN COMMAND</div><div>> raw IFNAME=p2p-wlan2-0 wps_pbc</div><div>UNKNOWN COMMAND</div><div><br></div><div><br></div><div>Which command I have to use to let the wpa_supplicant run wps_pbc on p2p-wlan2-0 with no need to launch "./wpa_cli p2p-wlan2-0" before?</div><div><br></div><div><br></div><div>Thanks.</div><div><br></div><br><div>> Date: Mon, 12 Oct 2015 00:37:34 +0300<br>> From: j@w1.fi<br>> To: hostap@lists.shmoo.com<br>> Subject: Re: How to issue wps_pbc command to the right p2p interface<br>> <br>> On Wed, Oct 07, 2015 at 01:30:11PM +0200, Andrea Chittano wrote:<br>> > Anyway, I followed your suggestion but I still cannot correctly execute wps-pbc.Moreover, it seems that wpa_supplicant, started as shown below, does not use the p2p configuration file that I put in /etc/ folder. I say that because the Android devices I use to connect to wi-fi card on linux machine, do not notice the wi-fi card name.The p2p configuration file contains the following information:<br>> > ctrl_interface=/var/run/wpa_supplicantap_scan=1device_name=P2P-Namedriver_param=use_p2p_group_interface=1p2p_go_intent=15<br>> > <br>> > These are the steps I followed:<br>> > asd@asd:~/Desktop/wpa_supplicant-2.5/wpa_supplicant$ sudo ./wpa_supplicant -g/var/run/wpa_supplicant-global -c/etc/p2p.conf -dt -f/var/log/my_wpa_supplicant.log<br>> <br>> That -c parameter without any interface (-i parameter) on the command<br>> line does not do anything. If you want to use a specific configuration<br>> file with an interface and do this from the command line, you'll need to<br>> include both the -c and -i parameters.<br>> <br>> > asd@asd:~/Desktop/wpa_supplicant-2.5/wpa_supplicant$ sudo ./wpa_cli -g/run/wpa_supplicant-global interface_add wlan2 "" nl80211 /var/run/wpa_supplicant<br>> <br>> This is adding a new interface dynamically without specifying any<br>> configuration file. If you want to specify a configuration file for a<br>> dynamically added interface, that second parameter ("") is the place to<br>> provide the path to the configuration file.<br>> <br>> -- <br>> Jouni Malinen                                            PGP id EFC895FA<br>> _______________________________________________<br>> HostAP mailing list<br>> HostAP@lists.shmoo.com<br>> http://lists.shmoo.com/mailman/listinfo/hostap<br></div>                                      </div></body>
</html>