Skip to content

Commit 7f4e097

Browse files
benzeakuba-moo
authored andcommitted
wifi: mac80211: report all unusable beacon frames
Properly check for RX_DROP_UNUSABLE now that the new drop reason infrastructure is used. Without this change, the comparison will always be false as a more specific reason is given in the lower bits of result. Fixes: baa951a ("mac80211: use the new drop reasons infrastructure") Signed-off-by: Benjamin Berg <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 533aa0b commit 7f4e097

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
@@ -2110,7 +2110,7 @@ ieee80211_rx_h_decrypt(struct ieee80211_rx_data *rx)
21102110
/* either the frame has been decrypted or will be dropped */
21112111
status->flag |= RX_FLAG_DECRYPTED;
21122112

2113-
if (unlikely(ieee80211_is_beacon(fc) && result == RX_DROP_UNUSABLE &&
2113+
if (unlikely(ieee80211_is_beacon(fc) && (result & RX_DROP_UNUSABLE) &&
21142114
rx->sdata->dev))
21152115
cfg80211_rx_unprot_mlme_mgmt(rx->sdata->dev,
21162116
skb->data, skb->len);

0 commit comments

Comments
 (0)