]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: Use correct interface type when creating P2P interface
authorAvrahams Stern <avraham.stern@intel.com>
Tue, 18 Oct 2016 09:44:17 +0000 (12:44 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 28 Oct 2016 21:55:49 +0000 (00:55 +0300)
commit847ee1aac3dc44c94ace3105106595b6c5b464ad
tree158970a62a2861cd7f92b807e9345c2f4b426bf0
parent78a3b230606d4b2637fb69d88f77a80562ebe651
wpa_supplicant: Use correct interface type when creating P2P interface

When starting ASP provisioning with connection capability set to NEW,
don't create the pending P2P interface as a GO interface because
Go negotiation will determine which side will be the GO and it is
possible that eventually this interface will become the client.
In this case, when the P2P client is started it will start scanning
and do other station specific operations while the interface type
is AP.

Instead, use type WPA_IF_P2P_GROUP when creating the interface which
means the interface type will be determined later.

Signed-off-by: Avrahams Stern <avraham.stern@intel.com>
wpa_supplicant/p2p_supplicant.c