]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:36:22 +0000 (16:36 +0100)
commit7e01a7fb0907995ef4e565ab6084427b611abdd9
tree2a63251a258ca263476674afaa16343f0c321a95
parentea156a7e5085a5f63ab0b0f60c083ccccbfd87eb
iwlwifi: mvm: Fix calculation of frame length

BugLink: https://bugs.launchpad.net/bugs/1960566
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c