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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2012-07-25 16:18:12 +03:00 committed by Jouni Malinen
parent 488f4a7108
commit cae2119c86

View File

@ -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");