]> git.baikalelectronics.ru Git - kernel.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)
commit46d9ddcd2d6ecdf31e2f4cd6f3e9211c05e7ffff
tree4e3cbf325d55fd7997e7021031610b8833aac44c
parent854e0683137cb0e076ed97f58e853676730f437b
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