From d494ca0be4a00ea538c5573e54d339d4126882b1 Mon Sep 17 00:00:00 2001 From: Andrei Otcheretianski Date: Mon, 13 Jul 2015 09:49:16 +0300 Subject: [PATCH] P2PS: Consider WPS P2PS method when joining a group If P2PS PD concludes to use default P2PS method wpas_p2p_scan_res_join() ignores this value and tries to perform a redundant legacy PD. Fix this by considering WPS_P2PS method too. Signed-off-by: Andrei Otcheretianski Reviewed-by: Ilan Peer --- wpa_supplicant/p2p_supplicant.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 8465b8843..3fa2c4349 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -4651,6 +4651,9 @@ static void wpas_p2p_scan_res_join(struct wpa_supplicant *wpa_s, case WPS_PBC: method = WPS_CONFIG_PUSHBUTTON; break; + case WPS_P2PS: + method = WPS_CONFIG_P2PS; + break; default: method = 0; break;