P2P: Use group SSID, if known, for join operation even if no BSS entry
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 30 Dec 2015 17:00:56 +0000 (19:00 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 30 Dec 2015 17:00:56 +0000 (19:00 +0200)
This allows the cases where a specific group SSID is known to filter out
groups on the P2P Client even if the specific BSS entry for the target
group is not yet available.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c

index 4e903e2..4040e61 100644 (file)
@@ -5100,6 +5100,11 @@ static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s, int freq,
                        wpa_printf(MSG_DEBUG, "P2P: Join target GO operating frequency from BSS table: %d MHz (SSID %s)",
                                   bss->freq,
                                   wpa_ssid_txt(bss->ssid, bss->ssid_len));
+               } else if (ssid && ssid_len) {
+                       res.ssid_len = ssid_len;
+                       os_memcpy(res.ssid, ssid, ssid_len);
+                       wpa_printf(MSG_DEBUG, "P2P: Join target GO (SSID %s)",
+                                  wpa_ssid_txt(ssid, ssid_len));
                }
        }