nl80211: how to check if that is p2p go or client
hardik patel
hk5patel
Fri Aug 12 08:25:11 PDT 2011
Hi,
Check below patch for driver_nl80211.c file in supplicant which set
nlmode as NL80211_IFTYPE_P2P_GO
http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=commit;h=b1f625e0d81b76bb2380d0b47b95f5ad61123ba5
Use supplicant version 0.8.x which have good support for P2P (wifi-direct)
Get latest supplicant from below :
http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=tree;h=refs/heads/master;hb=refs/heads/master
Thanks,
Hardik
On Fri, Aug 12, 2011 at 7:28 PM, Janusz Dziedzic
<janusz.dziedzic at gmail.com> wrote:
> 2011/8/12 hardik patel <hk5patel at gmail.com>:
>> Hi ,
>>
>> Which supplicant version you are using ? I think in latest supplicant
>> it is taken care by driver_nl80211.c file in supplicant. Which will
>> set proper interface for p2p.
>>
>> In cfg80211 driver, In cfg80211_change_iface callback driver function
>> you can check type which is nothing but "enum nl80211_iftype"
>> variable. this tell you whether it is p2p_client or p2p_GO
>>
>
> I am using current wpa_supplicant.
> P2P_GO or P2P_CLIENT is never send in set_interface callback.
>
> wpa_driver_nl80211_set_mode() ?function from driver_nl80211.c set only:
> NL80211_IFTYPE_STATION
> NL80211_IFTYPE_ADHOC
> NL80211_IFTYPE_AP
>
> I see in cfg80211 layer - we never set P2P_GO, P2P_CLIENT nl80211
> enums in set_interface().
>
>
>
> BR
> Janusz
>
--
Regards,
Hardik
"If you are doing what you have always been doing then expect what you
have always been getting."
More information about the Hostap
mailing list