From: Andrei Otcheretianski Date: Tue, 26 Nov 2024 09:10:13 +0000 (+0200) Subject: P2P2: Fix frequency selection for auto GO join X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abedecd14cefd7fe2cc029b53c1e3625f1b6ab9d;p=thirdparty%2Fhostap.git P2P2: Fix frequency selection for auto GO join When reusing an existing GO for pairing, force its frequency in GO negotiation. Signed-off-by: Andrei Otcheretianski --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 06c70c2d5..1d20ea3bc 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -6873,6 +6873,8 @@ int wpas_p2p_connect(struct wpa_supplicant *wpa_s, const u8 *peer_addr, ssid = NULL; continue; } + + force_freq = ifs->ap_iface->freq; break; } p2p_set_go_role(wpa_s->global->p2p, true);