P2P: Not ready for GO negotiation with xx:xx:xx:xx:xx:xx

Gilles DOFFE g.doffe at gmail.com
Fri Apr 19 08:12:32 EDT 2013


Hello,

I'm trying to establish a P2P connection between my computer and my Nexus 4
using DBus api of wpa_supplicant.

On my PC i'm first in Listen state.
Nexus 4 sends a P2PRequestDisplayPin to my PC.
I then enter the pin code displayed on PC on my Nexus 4.
I receive a GONegotiationRequest from the Nexus 4 on my PC but
wpa_supplicant does not forge correctly GONegotiationResponse :

1366279418.575648: nl80211: Event message available
1366279418.575687: nl80211: MLME event 59
1366279418.575692: nl80211: Frame event
1366279418.575700: wlan0: Event RX_ACTION (21) received
1366279418.575708: wlan0: Received Action frame: SA=12:68:3f:8e:63:12
Category=4 DataLen=139 freq=2462 MHz
1366279418.575715: wlan0: P2P: RX P2P Public Action from 12:68:3f:8e:63:12
1366279418.575721: wlan0: P2P: Received GO Negotiation Request from
12:68:3f:8e:63:12(freq=2462)
1366279418.575725: P2P: Parsing the received message
1366279418.575728: P2P: * Dialog Token: 2
1366279418.575733: P2P: Parsing WPS IE
1366279418.575738: P2P: Device Password ID: 1
1366279418.575741: P2P: Parsing P2P IE
1366279418.575744: P2P: Attribute 2 length 2
1366279418.575747: P2P: * Device Capability 20 Group Capability 2a
1366279418.575750: P2P: Attribute 4 length 1
1366279418.575753: P2P: * GO Intent: Intent 7 Tie breaker 0
1366279418.575757: P2P: Attribute 5 length 2
1366279418.575760: P2P: * Configuration Timeout
1366279418.575762: P2P: Attribute 6 length 5
1366279418.575765: P2P: * Listen Channel: Country XX(0x04) Regulatory Class
81 Channel Number 6
1366279418.575770: P2P: Attribute 9 length 6
1366279418.575772: P2P: * Intended P2P Interface Address: 12:68:3f:8e:63:12
1366279418.575776: P2P: Attribute 11 length 6
1366279418.575779: P2P: * Channel List: Country String 'XX(0x04)'
1366279418.575782: P2P: Attribute 13 length 33
1366279418.575787: P2P: * Device Info: addr 12:68:3f:8e:63:12 primary
device type 10-0050F204-5 device name 'Android_a027' config methods 0x108
1366279418.575792: P2P: Attribute 17 length 5
1366279418.575795: P2P: * Operating Channel: Country XX(0x04) Regulatory
Class 81 Channel Number 1
1366279418.575802: wlan0: P2P: Not ready for GO negotiation with
12:68:3f:8e:63:12
1366279418.575807: wlan0: P2P-GO-NEG-REQUEST 12:68:3f:8e:63:12
dev_passwd_id=1
1366279418.575865: wlan0: P2P: Building GO Negotiation Response
1366279418.575871: P2P: * Dialog Token: 2
1366279418.575874: P2P: * P2P IE header
1366279418.575876: P2P: * Status: 1
1366279418.575879: P2P: * Capability dev=25 group=00
1366279418.575882: P2P: * GO Intent: Intent 0 Tie breaker 1
1366279418.575885: P2P: * Configuration Timeout: GO 100 (*10ms)  client 20
(*10ms)
1366279418.575889: P2P: * Operating Channel: Regulatory Class 0 Channel 0
1366279418.575892: P2P: * Intended P2P Interface Address 00:00:00:00:00:00
1366279418.575897: P2P: * Channel List - hexdump(len=3): 58 58 04
1366279418.575901: P2P: * Device Info
1366279418.575904: WPS:  * Version (hardcoded 0x10)
1366279418.575907: P2P: WPS IE Device Password ID: 0
1366279418.575910: WPS:  * Version2 (0x20)
1366279418.575914: wlan0: P2P: Sending GO Negotiation Response
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
1366279418.575926: nl80211: Send Action frame (ifindex=4, freq=2462 MHz
wait=500 ms no_cck=1)
1366279418.575931: nl80211: CMD_FRAME freq=2462 wait=500 no_cck=1 no_ack=0
offchanok=1
1366279418.575973: nl80211: Frame TX command accepted; cookie
0xffff880404192100
1366279418.578761: nl80211: Event message available


The "P2P: Not ready for GO negotiation with" message seems to be displayed
by function p2p_process_go_neg_req in file p2p_go_neg.c :
http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=src/p2p/p2p_go_neg.c;hb=HEAD

It seems that wps_method is not set for the device. But how to set it ?

Could you help me to understand what is wrong ?

In attachment, you will find the python script I use (derived from
wap_supplicant p2p example).

Thanks,
Gilles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20130419/e7f3e8b2/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2pListen.py
Type: application/octet-stream
Size: 3526 bytes
Desc: not available
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20130419/e7f3e8b2/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpaDbus.py
Type: application/octet-stream
Size: 2617 bytes
Desc: not available
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20130419/e7f3e8b2/attachment-0003.obj>


More information about the HostAP mailing list