[PATCH] nl80211: Allow configuring allowable legacy rate mask.

Jouni Malinen j
Tue Oct 6 11:08:10 PDT 2015


On Tue, Sep 15, 2015 at 08:04:45PM -0400, greearb at candelatech.com wrote:
> With this, we should be able to disable un-wanted rates
> early in the association process, before 'iw' could
> have a chance to make any settings.

I cleaned up this patch and the following 3 patchset a bit and the
latest snapshot from my work branch is here:
http://w1.fi/p/nl80211-rates/

This needs some more testing. See patch 5/5 for mac80211_hwsim test
cases that would need more work to use tshark to check the TX rate and
supported rates elements; something similar is needed for P2P cases
(disable 11b) to check for regressions.

One unexpected part I saw was in how this works with association or to
be more exact, how this does not work at all with association.. Or well,
the actual TX rate of the frame does change, but supported rates
elements did not. Was that on purpose? It is certainly quite confusing
to the user, i.e., I would have expected this to be a global rate mask
that would apply for all operations on the interface.

I could not get ht_disable=1 vht_disable=1 to work. Was that supposed to
remove HT Capabilities from Probe Request frames? Please note that I had
to remove VHT rate set from the 2.4 GHz band to prevent cfg80211 from
rejecting the full command as invalid. Anyway, the HT capabilities show
up on 2.4 GHz band even when using ht_disable=1 driver parameter.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list