]> git.baikalelectronics.ru Git - kernel.git/commit
mt7601u: let mac80211 validate rx CCMP PN
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Fri, 9 Mar 2018 09:41:41 +0000 (10:41 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 13 Mar 2018 16:35:03 +0000 (18:35 +0200)
commitd1af47fec954a08f273186a46bac4bb3da35be90
tree39eeaef2e951592a6bd3c9062beaa0d41d0abe97
parent9bf03d739d92287e15f1f165842fac8cc8d56e89
mt7601u: let mac80211 validate rx CCMP PN

Apparently the hardware does not perform CCMP PN validation so
let mac80211 take care of possible replay attacks in sw.
Moreover indicate ICV and MIC had been stripped setting corresponding
bits in ieee80211_rx_status.
The fix has been validated using 4.2.1 and 4.1.3 tests from the WiFi
Alliance vulnerability detection tool.

Fixes: 4a363cb4f0ef ("add mt7601u driver")
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Tested-by: David Park <david.park@hitemengineering.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt7601u/initvals.h
drivers/net/wireless/mediatek/mt7601u/mac.c