a7562996b1806066584c7dc9397a2886da7ddfdc
[oweals/openwrt.git] /
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Fri, 23 Feb 2018 09:59:35 +0100
3 Subject: [PATCH] mac80211: drop frames with unexpected DS bits from
4  fast-rx to slow path
5
6 Fixes rx for 4-addr packets in AP mode
7
8 Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 ---
10
11 --- a/net/mac80211/rx.c
12 +++ b/net/mac80211/rx.c
13 @@ -3928,7 +3928,7 @@ static bool ieee80211_invoke_fast_rx(str
14         if ((hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_FROMDS |
15                                               IEEE80211_FCTL_TODS)) !=
16             fast_rx->expected_ds_bits)
17 -               goto drop;
18 +               return false;
19  
20         /* assign the key to drop unencrypted frames (later)
21          * and strip the IV/MIC if necessary