]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iwlwifi: pcie: don't consider IV len in A-MSDU
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Thu, 7 Nov 2019 11:51:47 +0000 (13:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:48:30 +0000 (08:48 +0100)
commitd939c419cfebdd8280897d6f6fd5d7a6220a37a6
tree97e1863a62873259f7971d0f3861091e1a3df20c
parent08f9495c6db349edac74c7e69f7c078596ca86d2
iwlwifi: pcie: don't consider IV len in A-MSDU

[ Upstream commit cb1a4badf59275eb7221dcec621e8154917eabd1 ]

From gen2 PN is totally offloaded to hardware (also the space for the
IV isn't part of the skb).  As you can see in mvm/mac80211.c:3545, the
MAC for cipher types CCMP/GCMP doesn't set
IEEE80211_KEY_FLAG_PUT_IV_SPACE for gen2 NICs.

This causes all the AMSDU data to be corrupted with cipher enabled.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c