wifi: mac80211: report all unusable beacon frames
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 21 Jun 2023 12:05:44 +0000 (14:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jun 2023 05:55:29 +0000 (22:55 -0700)
commit7f4e09700bdc13ce9aafa279bc999051e9bcda35
treea3e2a8ccc13f91b0e32cbd67d70d8c59eac40ab9
parent533aa0baaa1fe1f9f7f3ae0a368c22df8f3cf127
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: baa951a1c177 ("mac80211: use the new drop reasons infrastructure")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20230621120543.412920-2-johannes@sipsolutions.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mac80211/rx.c