From: Andrei Otcheretianski Date: Mon, 13 Jul 2015 06:49:16 +0000 (+0300) Subject: P2PS: Consider WPS P2PS method when joining a group X-Git-Tag: hostap_2_5~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d494ca0be4a00ea538c5573e54d339d4126882b1;p=thirdparty%2Fhostap.git 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 --- 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;