]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Update wpa_s->go_dev_addr on GO during group started notification
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Mon, 29 Sep 2025 16:43:44 +0000 (19:43 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 29 Sep 2025 16:45:15 +0000 (19:45 +0300)
Some of the sequences for starting a GO did no update
wpa_s->go_dev_addr. Set that here to keep things more consistent when
this variable gets exposed externally.

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

index 9ee8955f2c177d05637adc09a5debaddac3f3006..5db5eb9156495f589df531e34053171f9f40f8f7 100644 (file)
@@ -1440,6 +1440,9 @@ static void wpas_p2p_group_started(struct wpa_supplicant *wpa_s,
                   wpa_s->ifname, go ? "GO" : "client", ssid_txt, freq,
                   MAC2STR(go_dev_addr), persistent ? " [PERSISTENT]" : "",
                   extra);
+
+       if (go && is_zero_ether_addr(wpa_s->go_dev_addr))
+               os_memcpy(wpa_s->go_dev_addr, go_dev_addr, ETH_ALEN);
 }