319-v4.17-0001-mac80211-drop-frames-with-unexpected-DS-bits-from-fa.patch 625 B

123456789101112131415161718192021
  1. From: Felix Fietkau <[email protected]>
  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. Fixes rx for 4-addr packets in AP mode
  6. Signed-off-by: Felix Fietkau <[email protected]>
  7. ---
  8. --- a/net/mac80211/rx.c
  9. +++ b/net/mac80211/rx.c
  10. @@ -3928,7 +3928,7 @@ static bool ieee80211_invoke_fast_rx(str
  11. if ((hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_FROMDS |
  12. IEEE80211_FCTL_TODS)) !=
  13. fast_rx->expected_ds_bits)
  14. - goto drop;
  15. + return false;
  16. /* assign the key to drop unencrypted frames (later)
  17. * and strip the IV/MIC if necessary