From: Johannes Berg Date: Fri, 24 Jan 2014 13:41:44 +0000 (+0100) Subject: mac80211: fix bufferable MMPDU RX handling X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=6f0aabab49b22056cbcd1ecb7d3a723871c2de7f;hp=6f0aabab49b22056cbcd1ecb7d3a723871c2de7f;p=carl9170fw.git mac80211: fix bufferable MMPDU RX handling Action, disassoc and deauth frames are bufferable, and as such don't have the PM bit in the frame control field reserved which means we need to react to the bit when receiving in such a frame. Fix this by introducing a new helper ieee80211_is_bufferable_mmpdu() and using it for the RX path that currently ignores the PM bit in any non-data frames for doze->wake transitions, but listens to it in all frames for wake->doze transitions, both of which are wrong. Also use the new helper in the TX path to clean up the code. Signed-off-by: Johannes Berg Signed-off-by: Christian Lamparter ---