mac80211: push michael MIC report after DA check
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 16 Nov 2009 11:00:39 +0000 (12:00 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:16 +0000 (17:09 -0500)
commitaf2ced6a32dafb71d21b726c06df57fc574093d7
tree001775c68ec09aad0d8f93a5e8234c13f4e84eb3
parentc951ad3550ab40071bb0f222ba6125845769c08a
mac80211: push michael MIC report after DA check

When we receive a michael MIC failure report from the
hardware we currently do not check whether it is actually
reported on a frame that is destined to us. It shouldn't
be possible to get a michael MIC failure report on other
frames, but it also doesn't hurt to verify.

Also, since we then don't need the station struct that
early, move looking it up a bit later in the RX path.

Finally, while at it, a few code cleanups in the area.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c