]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Leave forced BSSID parameter for P2P group
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 25 Jul 2012 13:18:12 +0000 (16:18 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 25 Jul 2012 13:18:12 +0000 (16:18 +0300)
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>

wpa_supplicant/wps_supplicant.c

index 7356d1a7a44112b8744b68cf037f9370c2314d1c..5dcfd2ab9fe68a07ec3e4d7b603f201953e7e11d 100644 (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");