Skip to content

Commit

Permalink
mac80211: drop frames with unexpected DS bits from fast-rx to slow path
Browse files Browse the repository at this point in the history
[ Upstream commit b323ac1 ]

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 <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
nbd168 authored and gregkh committed May 30, 2018
1 parent dff5da4 commit 3d82155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3928,7 +3928,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
Expand Down

0 comments on commit 3d82155

Please sign in to comment.