<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><div>Hi,</div><div>it seems that there was an error on my machine that was not caused by wpa_supplicant.</div><div><br></div><div>Anyway, I followed your suggestion but I still cannot correctly execute wps-pbc.</div><div>Moreover, it seems that wpa_supplicant, started as shown below, does not use the p2p configuration file that I put in /etc/ folder. </div><div>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.</div><div>The p2p configuration file contains the following information:</div><div><br></div><div>ctrl_interface=/var/run/wpa_supplicant</div><div>ap_scan=1</div><div>device_name=P2P-Name</div><div>driver_param=use_p2p_group_interface=1</div><div>p2p_go_intent=15</div><div><br></div><div><br></div><div>These are the steps I followed:</div><div><br></div><div>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</div><div><br></div><div><br></div><div>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</div><div>OK</div><div>asd@asd:~/Desktop/wpa_supplicant-2.5/wpa_supplicant$ sudo ./wpa_cli</div><div>wpa_cli v2.5</div><div>Copyright (c) 2004-2015, 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>CTRL-EVENT-SCAN-STARTED </div><div><3>P2P-DEVICE-FOUND b2:df:3a:f0:77:0d p2p_dev_addr=b2:df:3a:f0:77:0d pri_dev_type=10-0050F204-5 name='W3Lab CSP (SM-P605)' config_methods=0x188 dev_capab=0x25 group_capab=0x0 vendor_elems=1 new=1</div><div><3>CTRL-EVENT-SCAN-STARTED </div><div><3>CTRL-EVENT-SCAN-STARTED </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 new=1</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>CTRL-EVENT-SCAN-STARTED </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 go_intent=6</div><div><3>P2P-FIND-STOPPED </div><div>OK</div><div><3>P2P-GO-NEG-SUCCESS role=GO freq=2462 ht40=0 peer_dev=ae:22:0b:a6:8d:59 peer_iface=ae:22:0b:a6:0d:59 wps_method=PBC</div><div><3>P2P-GROUP-FORMATION-SUCCESS </div><div><3>P2P-GROUP-STARTED p2p-wlan2-0 GO ssid="DIRECT-Jb" freq=2462 passphrase="1EGhj6eH" 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>> > IFNAME=p2p-wlan2-0 wps_pbc</div><div>UNKNOWN COMMAND</div><div>> </div><div><br></div><div><br></div><div>Note:I modified the source code of the wpa_cli in order to let the wpa_cli to send the p2p connect command to the wpa_supplicant automatically once it receives the <3>P2P-GO-NEG-REQUEST notification.</div><div><br></div><div>Do you know why it seems wpa_supplicant do not use p2p configuration file?</div><div>With regard to "IFNAME=p2p-wlan2-0 wps_pbc unknown command" problem, do I need to add some new patch to wpa_cli.c file?</div><div><br></div><div>Thanks</div><div><br></div><br><div>> Date: Tue, 6 Oct 2015 13:12:41 +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 Tue, Oct 06, 2015 at 11:17:02AM +0200, Andrea Chittano wrote:<br>> > Let's suppose I want to use a global control interface, which is the right procedure (included the right way to set the configuration files) that I have to follow?<br>> > I mean, I would like to use the following p2p.conf file (located in /etc/ folder):<br>> > ctrl_interface=/var/run/wpa_supplicantap_scan=1device_name=P2P-Testdriver_param=use_p2p_group_interface=1p2p_go_intent=15<br>> > If I use the following set of commands, linux crashes once it notices the first p2p group owner negotiation request: -- wpa_supplicant -g /var/run/wpa_supplicant-global -c /etc/p2p.conf<br>> > -- wpa_cli -g /var/run/wpa_supplicant-global interface_add wlan0 "" nl80211 /var/run/wpa_supplicant<br>> <br>> Could you please clarify what exactly you mean with "linux crashing"?<br>> Please post a wpa_supplicant debug log showing this.<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>
                                          </div></body>
</html>