diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-02-23 10:06:03 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-02-23 12:13:17 +0100 |
commit | b323ac19b7734a1c464b2785a082ee50bccd3b91 (patch) | |
tree | 0cfaa973bfd6567b6360427b6635ca14fa3093c6 /net/mac80211 | |
parent | 36148c2bbfbe50c50206b6f61d072203c80161e0 (diff) | |
download | linux-b323ac19b7734a1c464b2785a082ee50bccd3b91.tar.bz2 |
mac80211: drop frames with unexpected DS bits from fast-rx to slow path
Fixes rx for 4-addr packets in AP mode. These may be used for setting
up a 4-addr link for stations that are allowed to do so.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index fd580614085b..56fe16b07538 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -3921,7 +3921,7 @@ static bool ieee80211_invoke_fast_rx(struct ieee80211_rx_data *rx, if ((hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) != fast_rx->expected_ds_bits) - goto drop; + return false; /* assign the key to drop unencrypted frames (later) * and strip the IV/MIC if necessary |