iwlwifi: mvm: drop UNKNOWN security type frames
authorSara Sharon <sara.sharon@intel.com>
Mon, 26 Mar 2018 10:07:03 +0000 (13:07 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 30 May 2018 06:08:06 +0000 (09:08 +0300)
commitfabdcc2ecd58500689f4fb73dc77283623d9ab7e
tree67dcc0c4436b043a655bbc18c1d81f12c8c4caef
parent0513c083d1f460c30eae67867c0add557f7ca1b9
iwlwifi: mvm: drop UNKNOWN security type frames

In some cases we may get from FW errored frames with
UNKNOWN security type.

This may happen in unsecured aggregation flow, where
the first packet had a CRC error in the WEP bit, which
was followed by a failure to decrypt and was dropped.

The next frames in the aggregation "inherit" the bad metadata
of the first packet.

Make sure to drop such frames since RADA and other offloads
will not operate correctly which may have unexpected results.

In case of AP it also causes to TX AMSDU frames to the peers,
resulting with assert 0x104B.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/rx.h
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c