iwlwifi: mvm: Drop large non sta frames
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 15 Apr 2019 13:45:04 +0000 (16:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:32 +0000 (07:28 +0200)
commit26902063a54ab3ec23a44b8edd45d55f7d467967
treebce5e3e30b2e914358b57f3a32f1255b1b545cbe
parentd3dbe913226ecc660987e77a2666e9ecb8fb3bb7
iwlwifi: mvm: Drop large non sta frames

[ Upstream commit ac70499ee97231a418dc1a4d6c9dc102e8f64631 ]

In some buggy scenarios we could possible attempt to transmit frames larger
than maximum MSDU size. Since our devices don't know how to handle this,
it may result in asserts, hangs etc.
This can happen, for example, when we receive a large multicast frame
and try to transmit it back to the air in AP mode.
Since in a legal scenario this should never happen, drop such frames and
warn about it.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c