nl80211: how to check if that is p2p go or client
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:
I see in cfg80211 layer - we never set P2P_GO, P2P_CLIENT nl80211
enums in set_interface().
More information about the HostAP