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

Janusz Dziedzic janusz.dziedzic at gmail.com
Fri Aug 12 09:58:12 EDT 2011


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


More information about the HostAP mailing list