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

Johannes Berg johannes at sipsolutions.net
Sun Sep 4 13:40:18 EDT 2011


On Sat, 2011-09-03 at 22:21 +0530, Rajkumar Manoharan wrote:

> +	if (params->p2p_probe) {
> +		/*
> +		 * Disable 2 GHz rates 1, 2, 5.5, 11 Mbps by masking out
> +		 * everything else apart from 6, 9, 12, 18, 24, 36, 48, 54 Mbps
> +		 * from non-MCS rates. All 5 GHz rates are left enabled.
> +		 */
> +		NLA_PUT(rates, NL80211_BAND_2GHZ, 8,
> +				"\x0c\x12\x18\x24\x30\x48\x60\x6c");
> +		nla_put_nested(msg, NL80211_ATTR_SCAN_SUPP_RATES, rates);

I think that should take info from the capabilities to use the rates we
have, not blindly using the OFDM rates, although in practice that will
probably be sufficient.

johannes



More information about the HostAP mailing list