p2p_find failed

Fu Yingang yingang.fu at borqs.com
Thu Sep 15 05:49:51 EDT 2011


hi, Kevin

Thanks for your reply!

I'm trying run p2p on a Android phone.
I've tried built wpa_supplicant with nl80211 driver support. But I
failed at missing libnl_2 dynamic library ...
The kernel upgrade is acceptable for me .... So it seems i should give
up the p2p connection between two android phone right now.

Thanks
Yingang

On 09/14/2011 09:46 PM, Huijun Gan wrote:
> Hi, 
>   
>
> I think P2P functionality is only supported by the interface wrapper nl80211, 
> wext doesn't support P2P.
> Besides, you should use the newer kernel. 
>
>
>
> ------------------				 
> Thanks,
> Kevin
> 2011-09-14
>
> -------------------------------------------------------------
> 发件人:Fu Yingang
> 发送日期:2011-09-14 18:11:35
> 收件人:hostap; Fu Yingang
> 抄送:
> 主题:p2p_find failed
>
> hi, all
>
> I've built out the latest wpa_supplicant with P2P support.
> It returns FAIL When i use the wpa_cli to issue p2p_find command:
>
> 1.  start wpa_supplicant as daemon:
>
> /system/bin/wpa_supplicant -B -Dwext -ieth0 
> -c/data/misc/wifi/wpa_supplicant.conf
>
> wpa_supplicant.conf:
>
> ctrl_interface=/data/misc/wifi/server
> device_name=My P2P Device
> device_type=1-0050F204-1
>
> 2. Run wpa_cli:
>
> / # wpa_cli
> wpa_cli v0.8.x
> Copyright (c) 2004-2011, Jouni Malinen <j at w1.fi> and contributors
>
> This program is free software. You can distribute it and/or modify it
> under the terms of the GNU General Public License version 2.
>
> Alternatively, this software may be distributed under the terms of the
> BSD license. See README and COPYING for more details.
>
>
> Selected interface 'eth0'
>
> Interactive mode
>
>  > p2p_find
> FAIL
>
> When i traced the call process, I found that the p2p_find returned by:
>
>   wpa_s->global->p2p == NULL
>
> which at:
>          if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL)
>                  return -1;
>
> Does anyone tell me what's wrong with my steps or what should i setup 
> before following above steps?
>
> Thanks
> Yingang
>
> Other information:
>
> 1. My .config file as:(Just list the key configurations)
>
> CONFIG_DRIVER_WEXT=y
> CONFIG_WPS=y
> CONFIG_P2P=y
> CONFIG_AP=y
>
> 2. The chip is mrvl8787 and the kernel driver is provided by vendor. The 
> kernel version is 2.6.32.
>
>
>
> Thanks
> Yingang
>
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap


More information about the HostAP mailing list