[RFC] nl80211: allow Android P2P functionality

YanBo dreamfly281 at gmail.com
Fri May 10 14:46:39 EDT 2013


Where I try to run  iw wlan0 interface add p2p0 type __p2pdev after
upgrade the mac80211 with the
"[RFC v4] cfg80211: Android P2P-Device workaround" patch.

It shows the below error:
 command failed: Operation not supported on transport endpoint (-95)

The android system the orignal JB2_5 and the wpa_supplicant is not be changed.

Any idea about this error?  Is some extra patch need be apply to make it works?

BR /Yanbo

>Hello Johannes,

>Thanks for the response.

>After some playing around I figured out that the command to create p2p0
>interface is,

># iw wlan0 interface add p2p0 type __p2pdev


On 04/30/2013 07:12 PM, Johannes Berg wrote:
> On Tue, 2013-04-30 at 18:43 +0530, Sreenath wrote:
>> Hello Johannes,
>> Does this patch has to be applied on top of the patches submitted by
>> David Spinadel or hostap default git checkout code?
> It can be applied today.
>> Also whether wpa_supplicant has to be started on dummy 'p2p0' interface
>> along with WLAN primary interface. Because with out that, control socket
>> won't be created on 'p2p0' and which in turn is needed by Android
>> framework for P2P operations.
> Well, do
> # iw wlan0 interface create p2p0 __p2pdev
> first. Then use
> wpa_supplicant ... -ip2p0 -N -iwlan0
> johannes

More information about the HostAP mailing list