• Johannes Berg's avatar
    wifi: mac80211: fix check for unusable RX result · 58305854
    Johannes Berg authored
    If we just check "result & RX_DROP_UNUSABLE", this really only works
    by accident, because SKB_DROP_REASON_SUBSYS_MAC80211_UNUSABLE got to
    have the value 1, and SKB_DROP_REASON_SUBSYS_MAC80211_MONITOR is 2.
    
    Fix this to really check the entire subsys mask for the value, so it
    doesn't matter what the subsystem value is.
    
    Fixes: 7f4e0970 ("wifi: mac80211: report all unusable beacon frames")
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    58305854
drop.h 1.81 KB