P2P: Use 'Enrollee info' WPS request type in P2P scans
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 6 Jul 2010 23:32:14 +0000 (16:32 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 9 Sep 2010 14:17:20 +0000 (07:17 -0700)
This avoids setting explicit Request-to-Enrollee request when
WPS 2.0 is used.

wpa_supplicant/scan.c

index fc677da..ee105d9 100644 (file)
@@ -387,7 +387,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
        wpa_s->wps->dev.p2p = 1;
        if (!wps) {
                wps = 1;
-               req_type = WPS_REQ_ENROLLEE;
+               req_type = WPS_REQ_ENROLLEE_INFO;
        }
 
        if (params.freqs == NULL && wpa_s->p2p_in_provisioning &&