]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Indicate scan during group formation as P2P probe
authorJouni Malinen <j@w1.fi>
Sat, 29 Oct 2011 20:02:47 +0000 (23:02 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 29 Oct 2011 20:02:47 +0000 (23:02 +0300)
The interface may not yet have been set to P2P client mode immediately
after GO Negotiation when doing the scan before association request.
Consequently, the scan request in this state has to specify that the
specific P2P probe mode is used to disable IEEE 802.11b rates.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/scan.c

index f28e61192ad7a26c9256cf1986984ce12878e0d5..0f5335e9375e2715db44dba205ff2596c056969d 100644 (file)
@@ -598,6 +598,16 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
                params.extra_ies_len = wpabuf_len(extra_ie);
        }
 
+#ifdef CONFIG_P2P
+       if (wpa_s->p2p_in_provisioning) {
+               /*
+                * The interface may not yet be in P2P mode, so we have to
+                * explicitly request P2P probe to disable CCK rates.
+                */
+               params.p2p_probe = 1;
+       }
+#endif /* CONFIG_P2P */
+
        ret = wpa_supplicant_trigger_scan(wpa_s, &params);
 
        wpabuf_free(extra_ie);