aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAvrahams Stern <avraham.stern@intel.com>2016-10-18 09:44:17 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-28 21:55:49 (GMT)
commit847ee1aac3dc44c94ace3105106595b6c5b464ad (patch)
tree158970a62a2861cd7f92b807e9345c2f4b426bf0 /wpa_supplicant
parent78a3b230606d4b2637fb69d88f77a80562ebe651 (diff)
downloadhostap-847ee1aac3dc44c94ace3105106595b6c5b464ad.zip
hostap-847ee1aac3dc44c94ace3105106595b6c5b464ad.tar.gz
hostap-847ee1aac3dc44c94ace3105106595b6c5b464ad.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/p2p_supplicant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 648c840..6465e2f 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -807,7 +807,7 @@ grp_owner:
wpa_s->own_addr);
} else if (!s && !go_wpa_s) {
if (wpas_p2p_add_group_interface(wpa_s,
- WPA_IF_P2P_GO) < 0) {
+ WPA_IF_P2P_GROUP) < 0) {
wpa_printf(MSG_ERROR,
"P2P: Failed to allocate a new interface for the group");
return P2PS_SETUP_NONE;