nl80211: how to check if that is p2p go or client

hardik patel hk5patel
Fri Aug 12 08:25:11 PDT 2011


Check below patch for driver_nl80211.c file in supplicant which set
nlmode as NL80211_IFTYPE_P2P_GO;a=commit;h=b1f625e0d81b76bb2380d0b47b95f5ad61123ba5

Use supplicant version 0.8.x which have good support for P2P (wifi-direct)

Get latest supplicant from below :;a=tree;h=refs/heads/master;hb=refs/heads/master


On Fri, Aug 12, 2011 at 7:28 PM, Janusz Dziedzic
<janusz.dziedzic at> wrote:
> 2011/8/12 hardik patel <hk5patel at>:
>> 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:
> I see in cfg80211 layer - we never set P2P_GO, P2P_CLIENT nl80211
> enums in set_interface().
> BR
> Janusz


"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