[PATCH 2/2] p2p: Use scan supported rate attr for p2p probing

Jouni Malinen j
Sat Sep 10 12:45:07 PDT 2011


On Sat, Sep 03, 2011 at 10:21:51PM +0530, Rajkumar Manoharan wrote:
> This patch ensures that p2p probing does not use
> 11b rates by setting supported rates in the scan
> attributes.

Even though I did not apply the first patch, I ended up applying this
since it is a step towards better design for disabling 802.11b rates for
P2P use cases.

> diff --git a/wpa_supplicant/mlme.c b/wpa_supplicant/mlme.c
> @@ -2864,8 +2864,8 @@ int ieee80211_sta_req_scan(struct wpa_supplicant *wpa_s,
> -	wpa_s->mlme.scan_skip_11b = 1; /* FIX: clear this is 11g is not
> -					* supported */
> +	if (params->p2p_probe)
> +		wpa_s->mlme.scan_skip_11b = 1;

Though, I dropped this part since it has nothing to do with P2P and is
still needed.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list