]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2PS: Consider WPS P2PS method when joining a group
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 13 Jul 2015 06:49:16 +0000 (09:49 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 14 Aug 2015 20:56:12 +0000 (23:56 +0300)
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@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/p2p_supplicant.c

index 8465b88437a8b66dc3c11ae93187fbf3807c63fd..3fa2c4349deecf36851848ca09b2f50003b3805f 100644 (file)
@@ -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;