]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P2: Fix frequency selection for auto GO join
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Tue, 26 Nov 2024 09:10:13 +0000 (11:10 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 23 Dec 2024 11:09:26 +0000 (13:09 +0200)
When reusing an existing GO for pairing, force its frequency in GO
negotiation.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/p2p_supplicant.c

index 06c70c2d54412dd582b24e1a9c1100a1f1a6c6e5..1d20ea3bcdf3f018e6cc1c7ebc3bbfc98b9d7188 100644 (file)
@@ -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);