]> git.karo-electronics.de Git - linux-beck.git/commit
mac80211: consolidate MIC failure report handling
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 30 Apr 2011 13:24:30 +0000 (15:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 May 2011 18:49:14 +0000 (14:49 -0400)
commit816c04fe7ef01dd9649f5ccfe796474db8708be5
tree4e3cbf325d55fd7997e7021031610b8833aac44c
parent0ca699552c441e2c4201a6f60eac98b8865c1743
mac80211: consolidate MIC failure report handling

Currently, mac80211 handles MIC failures differently
depending on whenever they are detected by the stack's
own software crypto or when are handed down from the
driver.

This patch tries to unify both by moving the special
branch out of mac80211 rx hotpath and into into the
software crypto part. This has the advantage that we
can run a few more sanity checks on the data and verify
if the key type was TKIP. This is very handy because
several devices generate false postive MIC failure
reports. Like carl9170, ath9k and wl12xx:
<http://www.spinics.net/lists/linux-wireless/msg68494.html>
"mac80211: report MIC failure for truncated packets in AP mode"

Cc: Luciano Coelho <coelho@ti.com>
Cc: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c
net/mac80211/wpa.c