mac80211: perform power save processing before decryption
commit86c228a7627f3f2776893da47592234140fbfba8
authorJohan Almbladh <ja@anyfi.net>
Wed, 14 Aug 2013 13:29:46 +0000 (14 15:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 16 Aug 2013 10:19:16 +0000 (16 12:19 +0200)
tree38b33316b2d56d89301f272421c615ef85f675f8
parentdee08ab83d0378d922b67e7cf10bbec3e4ea343b
mac80211: perform power save processing before decryption

This patch decouples the power save processing from the frame decryption
by running the decrypt rx handler after sta_process. In the case where
the decryption failed for some reason, the stack used to not process
the PM and MOREDATA bits for that frame. The stack now always performs
power save processing regardless of the decryption result. That means that
encrypted data frames and NULLFUNC frames are now handled in the same way
regarding power save processing, making the stack more robust.

Signed-off-by: Johan Almbladh <ja@anyfi.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c