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>
Tue, 17 Dec 2019 19:37:26 +0000 (20:37 +0100)
commitcb8ce68f3037f911cf1b51b37ad8787f7c1cbcd7
tree738daead1cd1e79ecad513852eced7e565addcb7
parent223767740e15a0bd5c4c91baa9ffa21b92653ae1
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