]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iwlwifi: mvm: Fix calculation of frame length
authorIlan Peer <ilan.peer@intel.com>
Sun, 19 Dec 2021 10:18:16 +0000 (12:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:04:26 +0000 (09:04 +0100)
commit905dea58522773282fcb1510448b32ff48b23e01
tree0306cbb9381e4418fb600d20980ff3f110a5a6b4
parent8bc53c9df3dfa0ee057274ed73f5f96363cc74c5
iwlwifi: mvm: Fix calculation of frame length

[ Upstream commit 40a0b38d7a7f91a6027287e0df54f5f547e8d27e ]

The RADA might include in the Rx frame the MIC and CRC bytes.
These bytes should be removed for non monitor interfaces and
should not be passed to mac80211.

Fix the Rx processing to remove the extra bytes on non monitor
cases.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211219121514.098be12c801e.I1d81733d8a75b84c3b20eb6e0d14ab3405ca6a86@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c