[PATCH 10/11] P2PS: Consider WPS P2PS method when joining a group

Ilan Peer ilan.peer at intel.com
Mon Jul 13 02:49:16 EDT 2015


From: Andrei Otcheretianski <andrei.otcheretianski at intel.com>

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 <andrei.otcheretianski at intel.com>
Reviewed-by: Ilan Peer <ilan.peer at intel.com>
---
 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 983c204..c530599 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -4503,6 +4503,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;
-- 
1.9.1



More information about the HostAP mailing list