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 <andrei.otcheretianski@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Andrei Otcheretianski 2015-07-13 09:49:16 +03:00 committed by Jouni Malinen
parent cda3a40fce
commit d494ca0be4
1 changed files with 3 additions and 0 deletions

View 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;