<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;m trying to establish a P2P connection between my computer and my Nexus 4 using DBus api of wpa_supplicant.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">On my PC i&#39;m first in Listen state.</div><div style="font-family:arial,sans-serif;font-size:13px">
Nexus 4 sends a P2PRequestDisplayPin to my PC.</div><div style="font-family:arial,sans-serif;font-size:13px">I then enter the pin code displayed on PC on my Nexus 4.</div><div style="font-family:arial,sans-serif;font-size:13px">
I receive a GONegotiationRequest from the Nexus 4 on my PC but wpa_supplicant does not forge correctly GONegotiationResponse :</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<div>1366279418.575648: nl80211: Event message available</div><div>1366279418.575687: nl80211: MLME event 59</div><div>1366279418.575692: nl80211: Frame event</div><div>1366279418.575700: wlan0: Event RX_ACTION (21) received</div>
<div>1366279418.575708: wlan0: Received Action frame: SA=12:68:3f:8e:63:12 Category=4 DataLen=139 freq=2462 MHz</div><div>1366279418.575715: wlan0: P2P: RX P2P Public Action from 12:68:3f:8e:63:12</div><div>1366279418.575721: wlan0: P2P: Received GO Negotiation Request from 12:68:3f:8e:63:12(freq=2462)</div>
<div>1366279418.575725: P2P: Parsing the received message</div><div>1366279418.575728: P2P: * Dialog Token: 2</div><div>1366279418.575733: P2P: Parsing WPS IE</div><div>1366279418.575738: P2P: Device Password ID: 1</div><div>
1366279418.575741: P2P: Parsing P2P IE</div><div>1366279418.575744: P2P: Attribute 2 length 2</div><div>1366279418.575747: P2P: * Device Capability 20 Group Capability 2a</div><div>1366279418.575750: P2P: Attribute 4 length 1</div>
<div>1366279418.575753: P2P: * GO Intent: Intent 7 Tie breaker 0</div><div>1366279418.575757: P2P: Attribute 5 length 2</div><div>1366279418.575760: P2P: * Configuration Timeout</div><div>1366279418.575762: P2P: Attribute 6 length 5</div>
<div>1366279418.575765: P2P: * Listen Channel: Country XX(0x04) Regulatory Class 81 Channel Number 6</div><div>1366279418.575770: P2P: Attribute 9 length 6</div><div>1366279418.575772: P2P: * Intended P2P Interface Address: 12:68:3f:8e:63:12</div>
<div>1366279418.575776: P2P: Attribute 11 length 6</div><div>1366279418.575779: P2P: * Channel List: Country String &#39;XX(0x04)&#39;</div><div>1366279418.575782: P2P: Attribute 13 length 33</div><div>1366279418.575787: P2P: * Device Info: addr 12:68:3f:8e:63:12 primary device type 10-0050F204-5 device name &#39;Android_a027&#39; config methods 0x108</div>
<div>1366279418.575792: P2P: Attribute 17 length 5</div><div>1366279418.575795: P2P: * Operating Channel: Country XX(0x04) Regulatory Class 81 Channel Number 1</div><div>1366279418.575802: wlan0: P2P: Not ready for GO negotiation with 12:68:3f:8e:63:12</div>
<div>1366279418.575807: wlan0: P2P-GO-NEG-REQUEST 12:68:3f:8e:63:12 dev_passwd_id=1</div><div>1366279418.575865: wlan0: P2P: Building GO Negotiation Response</div><div>1366279418.575871: P2P: * Dialog Token: 2</div><div>1366279418.575874: P2P: * P2P IE header</div>
<div>1366279418.575876: P2P: * Status: 1</div><div>1366279418.575879: P2P: * Capability dev=25 group=00</div><div>1366279418.575882: P2P: * GO Intent: Intent 0 Tie breaker 1</div><div>1366279418.575885: P2P: * Configuration Timeout: GO 100 (*10ms)  client 20 (*10ms)</div>
<div>1366279418.575889: P2P: * Operating Channel: Regulatory Class 0 Channel 0</div><div>1366279418.575892: P2P: * Intended P2P Interface Address 00:00:00:00:00:00</div><div>1366279418.575897: P2P: * Channel List - hexdump(len=3): 58 58 04</div>
<div>1366279418.575901: P2P: * Device Info</div><div>1366279418.575904: WPS:  * Version (hardcoded 0x10)</div><div>1366279418.575907: P2P: WPS IE Device Password ID: 0</div><div>1366279418.575910: WPS:  * Version2 (0x20)</div>
<div>1366279418.575914: wlan0: P2P: Sending GO Negotiation Response</div><div>1366279418.575918: Off-channel: Send action frame: freq=2462 dst=12:68:3f:8e:63:12 src=84:a6:c8:6b:b3:c2 bssid=84:a6:c8:6b:b3:c2 len=115</div><div>
1366279418.575926: nl80211: Send Action frame (ifindex=4, freq=2462 MHz wait=500 ms no_cck=1)</div><div>1366279418.575931: nl80211: CMD_FRAME freq=2462 wait=500 no_cck=1 no_ack=0 offchanok=1</div><div>1366279418.575973: nl80211: Frame TX command accepted; cookie 0xffff880404192100</div>
<div>1366279418.578761: nl80211: Event message available</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
The &quot;P2P: Not ready for GO negotiation with&quot; message seems to be displayed by function p2p_process_go_neg_req in file p2p_go_neg.c :</div><div style="font-family:arial,sans-serif;font-size:13px"><a href="http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=src/p2p/p2p_go_neg.c;hb=HEAD" target="_blank">http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=src/p2p/p2p_go_neg.c;hb=HEAD</a><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">It seems that wps_method is not set for the device. But how to set it ?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Could you help me to understand what is wrong ?</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
In attachment, you will find the python script I use (derived from wap_supplicant p2p example).</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Thanks,</div><div style="font-family:arial,sans-serif;font-size:13px">Gilles</div></div>