From cae2119c863d3ea013ec820691bffc4a940e4f0b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 25 Jul 2012 16:18:12 +0300 Subject: [PATCH] P2P: Leave forced BSSID parameter for P2P group P2P group is only going to use a single GO, so we can leave the fixed BSSID parameter set for the actual data connection in addition to the initial WPS provisionign step. This can speed up operations with drivers that select BSS internally by allowing them to skip an extra scan when the BSSID and frequency of the GO is already known. Signed-hostap: Jouni Malinen --- wpa_supplicant/wps_supplicant.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 7356d1a7a..5dcfd2ab9 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -263,9 +263,10 @@ static int wpa_supplicant_wps_cred(void *ctx, ssid->eap.phase1 = NULL; os_free(ssid->eap.eap_methods); ssid->eap.eap_methods = NULL; - if (!ssid->p2p_group) + if (!ssid->p2p_group) { ssid->temporary = 0; - ssid->bssid_set = 0; + ssid->bssid_set = 0; + } } else { wpa_printf(MSG_DEBUG, "WPS: Create a new network based on the " "received credential");