diff mbox series

[04/11] P2P2: Fix frequency selection for auto GO join

Message ID 20241126091021.3561063-5-andrei.otcheretianski@intel.com
State Accepted
Headers show
Series [01/11] NAN: Remove excessive print | expand

Commit Message

Andrei Otcheretianski Nov. 26, 2024, 9:10 a.m. UTC
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 | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 99ee64f467..f87da3ef6a 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -6863,6 +6863,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);