iwlwifi: mvm: mark MIC stripped MPDUs
authorSara Sharon <sara.sharon@intel.com>
Mon, 8 Feb 2016 21:30:47 +0000 (23:30 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 5 Dec 2017 14:23:30 +0000 (16:23 +0200)
When RADA is active, the hardware decrypts the packets and strips off
the MIC as it is useless after decryption. Indicate that to mac80211.

Cc: stable@vger.kernel.org # 4.13+
[this is needed for the 9000-series HW to work properly]
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

index bf8409d8a13237038e26df3889ac7cc9cf4930e8..3b8d44361380de8d2a0a9635a915fe8151388ecf 100644 (file)
@@ -255,6 +255,8 @@ static int iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr,
                        return -1;
 
                stats->flag |= RX_FLAG_DECRYPTED;
+               if (pkt_flags & FH_RSCSR_RADA_EN)
+                       stats->flag |= RX_FLAG_MIC_STRIPPED;
                *crypt_len = IEEE80211_CCMP_HDR_LEN;
                return 0;
        case IWL_RX_MPDU_STATUS_SEC_TKIP: