]> git.openfabrics.org - ~emulex/infiniband.git/commit
mac80211: tx: do not drop non-robust mgmt to non-MFP stas.
authorNicolas Cavallari <Nicolas.Cavallari@lri.fr>
Wed, 4 Jul 2012 16:10:08 +0000 (18:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jul 2012 10:10:48 +0000 (12:10 +0200)
commit4922f71f2506e36d81a03f8fec4559bb7d175bf7
tree44c1210e58a314f9263a78aa33a8b950488c306e
parent46e6de159ddebc179cbae60fd7b728f57c39964b
mac80211: tx: do not drop non-robust mgmt to non-MFP stas.

When drop_unencrypted is enabled and MFP is disabled,
non-robust management frames for not-yet associated STA are dropped.
This isn't visible as many management frames sent from the kernel
have TX_INTFL_DONT_ENCRYPT set and management frames injected
from a monitor vif have TX_CTL_INJECTED so aren't dropped.
But management frames sent from userspace via NL80211_CMD_FRAME
do not have this flag set, so are dropped.

This patch make it always accept non-robust management frames.

Signed-off-by: Nicolas Cavallari <cavallar@lri.fr>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c