<div><div><div>Hello Dan,Arend and Jouni,</div><div><br></div><div>Thank you very much for taking time for looking into the issue.</div><div><br></div><div>It seems getting P2P work on my Think-pad little difficult. </div>
<div>We were facing the same issue on Raspberry PI board. Hence I started P2P debugging on the ubuntu X86 machine ( think-pad). However when we check "iw list" result on raspberry pi the P2P clinent and P2P Go Rx/Tx frame are supported but in the interface supported list it was not mentioned.</div>
<div><br></div><div>I am attaching user story and necessary logs for Raspberry PI to get help in resolving this issue. </div><div>Request all you to check the below details and suggest me, what could be the root cause.Your help is greatly appreciated in resolving this issue.</div>
<div>----------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div>User Story :</div><div>----------------</div><div><br></div><div>We want to try out WI-FI Display functionality. Just to try out things we have a Raspberry PI as a sink with a USB wifi dongle !</div>
<div><br></div><div>We have Nexus S which has wifi-direct available and Nexus 7 ( no inbuilt wifi-direct, but using third party app called "wifi-direct" from the playstore) as source /server.</div><div><br></div>
<div>We have to try this out with and without device being connected to an AP. </div><div><br></div><div>In the first instance we just want to connect and transfer some data between these two devices. Once that is achieved we want to move further to wifi-display. We have compiled the WPA_SUPPLICANT with P2P support on raspberry PI ( ARM - Broadcom). </div>
<div><br></div><div><br></div><div>Logs and other details:</div><div>------------------------------</div><div><br></div><div>When we run p2p_find from wpa_cli it returns instantaneous FAIL message. </div><div><br></div><div>
WPA_SUPPLICANT started with following command line arguments </div><div><br></div><div>wpa_supplicant -f /var/log/wpa.log -Dnl80211 -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0 -dt</div><div> </div><div><br></div><div>
WPA_CONFIG</div><div><br></div><div>root@raspberrypi:/home/pi# cat /etc/wpa_supplicant/wpa_supplicant.conf</div><div>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev</div><div>update_config=1</div><div><br></div><div>
<br></div><div>device_name=My P2P Device</div><div>device_type=1-0050F204-1</div><div><br></div><div><br></div><div>WPA_CLI - messages </div><div><br></div><div>></div><div>> p2p_find 60</div><div>FAIL</div><div>> p2p_find 60</div>
<div>FAIL</div><div>> p2p_listen</div><div>FAIL</div><div><br></div><div>WPA_APPLICANT LOG</div><div><br></div><div>root@raspberrypi:/home/pi# tail -f /var/log/wpa.log</div><div>1359148764.076983: EAPOL: SUPP_PAE entering state AUTHENTICATING</div>
<div>1359148764.077035: EAPOL: SUPP_BE entering state SUCCESS</div><div>1359148764.077085: EAP: EAP entering state DISABLED</div><div>1359148764.077136: EAPOL: SUPP_PAE entering state AUTHENTICATED</div><div>1359148764.077185: EAPOL: Supplicant port status: Authorized</div>
<div>1359148764.077551: EAPOL: SUPP_BE entering state IDLE</div><div>1359148764.077647: EAPOL authentication completed successfully</div><div>1359148764.077807: RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])</div>
<div>1359148764.077889: RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added</div><div>1359148764.078023: nl80211: if_removed already cleared - ignore event</div><div>1359148794.078254: EAPOL: startWhen --> 0</div>
<div>1359148794.078480: EAPOL: disable timer tick</div><div>1359148951.474127: wlan0: BSS: Remove id 1 BSSID a0:21:b7:4a:3d:d8 SSID 'virginmedia1153663' due to wpa_bss_flush_by_age</div><div>1359148951.474445: wlan0: BSS: Remove id 2 BSSID 00:81:d8:3f:b6:62 SSID 'BTHub3-93S4' due to wpa_bss_flush_by_age</div>
<div>1359148951.474580: wlan0: BSS: Remove id 3 BSSID 12:81:d8:3f:b6:62 SSID 'BTWiFi-with-FON' due to wpa_bss_flush_by_age</div><div>1359148951.474699: wlan0: BSS: Remove id 4 BSSID 02:81:d8:3f:b6:62 SSID 'BTWiFi' due to wpa_bss_flush_by_age</div>
<div>1359148995.986465: CTRL_IFACE monitor attached - hexdump(len=21): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 32 32 37 34 2d 32 00</div><div>1359149017.424316: RX ctrl_iface - hexdump_ascii(len=8):</div><div>50 32 50 5f 46 49 4e 44 P2P_FIND</div>
<div>1359149017.424693: wlan0: Control interface command 'P2P_FIND'</div><div>1359149017.424846: wlan0: P2P: Use 500 ms search delay due to concurrent operation</div><div>1359149070.440343: RX ctrl_iface - hexdump_ascii(len=11):</div>
<div>50 32 50 5f 46 49 4e 44 20 36 30 P2P_FIND 60</div><div>1359149070.440730: wlan0: Control interface command 'P2P_FIND 60'</div><div>1359149070.440860: wlan0: P2P: Use 500 ms search delay due to concurrent operation</div>
<div>1359149447.727077: RX ctrl_iface - hexdump_ascii(len=11):</div><div>50 32 50 5f 46 49 4e 44 20 36 30 P2P_FIND 60</div><div>1359149447.727464: wlan0: Control interface command 'P2P_FIND 60'</div><div>1359149447.727593: wlan0: P2P: Use 500 ms search delay due to concurrent operation</div>
<div>1359149471.995872: RX ctrl_iface - hexdump_ascii(len=10):</div><div>50 32 50 5f 4c 49 53 54 45 4e P2P_LISTEN</div><div>1359149471.996255: wlan0: Control interface command 'P2P_LISTEN'</div><div><br></div><div>
<br></div><div>IW LIST </div><div><br></div><div>root@raspberrypi:/home/pi# iw list</div><div>Wiphy phy0</div><div>Band 1:</div><div>Capabilities: 0x172</div><div>HT20/HT40</div><div>Static SM Power Save</div><div>RX Greenfield</div>
<div>RX HT20 SGI</div><div>RX HT40 SGI</div><div>RX STBC 1-stream</div><div>Max AMSDU length: 3839 bytes</div><div>No DSSS/CCK HT40</div><div>Maximum RX AMPDU length 65535 bytes (exponent: 0x003)</div><div>Minimum RX AMPDU time spacing: 2 usec (0x04)</div>
<div>HT RX MCS rate indexes supported: 0-7, 32</div><div>TX unequal modulation not supported</div><div>HT TX Max spatial streams: 1</div><div>HT TX MCS rate indexes supported may differ</div><div>Frequencies:</div><div>* 2412 MHz [1] (20.0 dBm)</div>
<div>* 2417 MHz [2] (20.0 dBm)</div><div>* 2422 MHz [3] (20.0 dBm)</div><div>* 2427 MHz [4] (20.0 dBm)</div><div>* 2432 MHz [5] (20.0 dBm)</div><div>* 2437 MHz [6] (20.0 dBm)</div><div>* 2442 MHz [7] (20.0 dBm)</div><div>
* 2447 MHz [8] (20.0 dBm)</div><div>* 2452 MHz [9] (20.0 dBm)</div><div>* 2457 MHz [10] (20.0 dBm)</div><div>* 2462 MHz [11] (20.0 dBm)</div><div>* 2467 MHz [12] (20.0 dBm) (passive scanning, no IBSS)</div><div>* 2472 MHz [13] (20.0 dBm) (passive scanning, no IBSS)</div>
<div>* 2484 MHz [14] (20.0 dBm) (passive scanning, no IBSS)</div><div>Bitrates (non-HT):</div><div>* 1.0 Mbps</div><div>* 2.0 Mbps (short preamble supported)</div><div>* 5.5 Mbps (short preamble supported)</div><div>* 11.0 Mbps (short preamble supported)</div>
<div>* 6.0 Mbps</div><div>* 9.0 Mbps</div><div>* 12.0 Mbps</div><div>* 18.0 Mbps</div><div>* 24.0 Mbps</div><div>* 36.0 Mbps</div><div>* 48.0 Mbps</div><div>* 54.0 Mbps</div><div>max # scan SSIDs: 4</div><div>max scan IEs length: 2257 bytes</div>
<div>Coverage class: 0 (up to 0m)</div><div>Supported Ciphers:</div><div>* WEP40 (00-0f-ac:1)</div><div>* WEP104 (00-0f-ac:5)</div><div>* TKIP (00-0f-ac:2)</div><div>* CCMP (00-0f-ac:4)</div><div>Available Antennas: TX 0 RX 0</div>
<div>Supported interface modes:</div><div>* IBSS</div><div>* managed</div><div>* AP</div><div>* AP/VLAN</div><div>* WDS</div><div>* monitor</div><div>* mesh point</div><div>software interface modes (can always be added):</div>
<div>* AP/VLAN</div><div>* monitor</div><div>interface combinations are not supported</div><div>Supported commands:</div><div>* new_interface</div><div>* set_interface</div><div>* new_key</div><div>* new_beacon</div><div>
* new_station</div><div>* new_mpath</div><div>* set_mesh_params</div><div>* set_bss</div><div>* authenticate</div><div>* associate</div><div>* deauthenticate</div><div>* disassociate</div><div>* join_ibss</div><div>* join_mesh</div>
<div>* remain_on_channel</div><div>* set_tx_bitrate_mask</div><div>* action</div><div>* frame_wait_cancel</div><div>* set_wiphy_netns</div><div>* set_channel</div><div>* set_wds_peer</div><div>* connect</div><div>* disconnect</div>
<div>Supported TX frame types:</div><div>* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0</div><div>* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0</div>
<div>* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0</div><div>* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0</div><div>* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0</div>
<div>* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0</div><div>* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0</div><div>Supported RX frame types:</div>
<div>* IBSS: 0xd0</div><div>* managed: 0x40 0xd0</div><div>* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0</div><div>* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0</div><div>* mesh point: 0xb0 0xc0 0xd0</div><div>* P2P-client: 0x40 0xd0</div>
<div>* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0</div><div><br></div><div><br></div><div><br></div><div>lsmod Drivers (rt2x000,cf80211,mac80211)</div><div><br></div><div>root@raspberrypi:/home/pi# lsmod</div><div>Module Size Used by</div>
<div>snd_bcm2835 12808 0</div><div>snd_pcm 74834 1 snd_bcm2835</div><div>snd_seq 52536 0</div><div>snd_timer 19698 2 snd_seq,snd_pcm</div><div>snd_seq_device 6300 1 snd_seq</div><div>snd 52489 5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835</div>
<div>snd_page_alloc 4951 1 snd_pcm</div><div>arc4 1187 2</div><div>rt2800usb 13009 0</div><div>rt2800lib 47242 1 rt2800usb</div><div>crc_ccitt 1465 1 rt2800lib</div><div>rt2x00usb 11075 1 rt2800usb</div><div>rt2x00lib 41057 3 rt2x00usb,rt2800lib,rt2800usb</div>
<div>mac80211 236178 3 rt2x00lib,rt2x00usb,rt2800lib</div><div>cfg80211 171957 2 mac80211,rt2x00lib</div><div><br></div><div><br></div><div>Hardware/Chipset - Ralink RT5370</div><div><br></div><div>Using white label USB WIFI dongle. Can't find the chipset datasheet but few people suggesting on the internet that this chip supports P2P/wifi direct </div>
<div><br></div><div>root@raspberrypi:/home/pi# lsusb</div><div>Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</div><div>Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.</div><div>Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.</div>
<div>Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter</div><div><br></div><div><a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=370569077102">http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=370569077102</a></div>
<div><br></div><div>Finally - rt800usb supports all the modes. </div><div><br></div><div><br></div><div>rt2800usb<span class="Apple-tab-span" style="white-space:pre">        </span>Ralink<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">        </span>yes(5)<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">        </span>A(1)/B/G/N<span class="Apple-tab-span" style="white-space:pre">        </span>USB</div>
<div>Driver<span class="Apple-tab-span" style="white-space:pre">        </span>Manufacturer<span class="Apple-tab-span" style="white-space:pre">        </span>cfg80211</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>AP</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>IBSS</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mesh</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>monitor</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>PHY modes<span class="Apple-tab-span" style="white-space:pre">        </span></div><div>Buses</div><div><br></div><div>-----------------------------------------------------------------------------</div>
<div><br></div><div>Thanks and Regards,</div><div>Nil</div></div><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 12:15 AM, Dan Williams <span dir="ltr"><<a href="mailto:dcbw@redhat.com" target="_blank">dcbw@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Wed, 2013-01-23 at 13:37 +0100, Arend van Spriel wrote:<br>
> On 01/23/2013 05:12 AM, Nilkanth Ahirrao wrote:<br>
> > Additional information : I could connect to my wireless router using AP.<br>
> ><br>
> > Please let me know if you need further details.<br>
> ><br>
> > Thanks in advance.<br>
> ><br>
> > Regards,<br>
> > Nil<br>
><br>
> Your thinkpad has wireless using iwlagn driver. Not sure if that<br>
> currently supports P2P. P2P involves two systems (hence the name) so<br>
> maybe you could explain what you are trying at a higher level, ie. what<br>
> devices are involved.<br>
<br>
</div></div>iwlagn did get support for p2p (landed 2011-07-23, commit c6baf7fb,<br>
kernel v3.2), but it requires a firmware update to ucode API level 6 for<br>
the 1000 devices. Without dmesg output of the driver loading to see<br>
what ucode revision he's got, it's hard to know whether the firmware<br>
supports it or not. Plus, given he mentioned kernel 3.0, it's unlikely<br>
that his kernel has the right support unless it was backported by<br>
Canonical.<br>
<span><font color="#888888"><br>
Dan<br>
<br>
</font></span></blockquote></div><br></div>