From: Jouni Malinen Date: Mon, 29 Sep 2025 16:43:44 +0000 (+0300) Subject: P2P: Update wpa_s->go_dev_addr on GO during group started notification X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a16ade2f5ce0e116c929f819d8b8c817e8bf3d;p=thirdparty%2Fhostap.git P2P: Update wpa_s->go_dev_addr on GO during group started notification 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 --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 9ee8955f2..5db5eb915 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -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); }