P2P: optimize join scan freq

If the auto GO has been discovered on another interface, optimize scan
frequency by performing a single channel scan first.

Bug: 233925359
Test: Configured auto GO using the WifiP2pTest app, used wifi picker to
discover the GO on client device, enabled client on WifiP2PTest app and
looked at logs to confirm that only operating freq was scanned

Change-Id: Iff9b67093647b829cc00a4afbb1f016a3a6de37b
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 0d59b79..00493d0 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -7014,6 +7014,11 @@
 	if (params->passphrase)
 		ssid->passphrase = os_strdup(params->passphrase);
 
+	if (params->bssid_set) {
+		ssid->bssid_set = 1;
+		os_memcpy(ssid->bssid, params->bssid, ETH_ALEN);
+	}
+
 	wpa_s->show_group_started = 1;
 	wpa_s->p2p_in_invitation = 1;
 	wpa_s->p2p_retry_limit = retry_limit;