Search Linux Wireless

Re: [PATCH] mac80211: use configured rates for assoc request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 22, 2011 at 04:26:57PM +0200, Johannes Berg wrote:
> When mac80211 connects to an AP, it will advertise
> all rates that it supports, but only the subset that
> the AP also supports. Userspace can, however, ask
> that only a subset of rates be used, so advertise
> only that subset. The rates that the user asked for
> must all be supported by the hardware, and the set
> that we advertise to the AP will also be restricted
> to rates the the AP also supports.

I agree that we need this functionality. However, there are some
potential issues with the way it is implemented here, so I think we
should drop this patch for now based on irc discussion and figure out a
better way of handling this configuration.

> +	/*
> +	 * Userspace may restrict the locally supported rates
> +	 * by setting up this; the default will be all rates
> +	 * that the HW supports.
> +	 */
> +	rate_mask = sdata->rc_rateidx_mask[wk->chan->band];

The problem with this is that rc_rateidx_mask is used to mask TX rates,
not supported rates. There may be use for being able to pick a subset of
rates for TX, but still allow the other end to transmit at other rates.
This gets especially problematic if one of the basic rates is masked
from TX rates (the association will get rejected). It may be cleanest to
add a separate rate mask to indicate supported rates and use it to build
the {,ext}supp rates elements.

-- 
Jouni Malinen                                            PGP id EFC895FA
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux