Skip to content

Commit 3d82155

Browse files
nbd168gregkh
authored andcommitted
mac80211: drop frames with unexpected DS bits from fast-rx to slow path
[ 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 <nbd@nbd.name> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dff5da4 commit 3d82155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3928,7 +3928,7 @@ static bool ieee80211_invoke_fast_rx(struct ieee80211_rx_data *rx,
39283928
if ((hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_FROMDS |
39293929
IEEE80211_FCTL_TODS)) !=
39303930
fast_rx->expected_ds_bits)
3931-
goto drop;
3931+
return false;
39323932

39333933
/* assign the key to drop unencrypted frames (later)
39343934
* and strip the IV/MIC if necessary

0 commit comments

Comments
 (0)