nl80211: how to check if that is p2p go or client
hk5patel at gmail.com
Fri Aug 12 11:25:11 EDT 2011
Check below patch for driver_nl80211.c file in supplicant which set
nlmode as NL80211_IFTYPE_P2P_GO
Use supplicant version 0.8.x which have good support for P2P (wifi-direct)
Get latest supplicant from below :
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:
> I see in cfg80211 layer - we never set P2P_GO, P2P_CLIENT nl80211
> enums in set_interface().
"If you are doing what you have always been doing then expect what you
have always been getting."
More information about the HostAP