Skip to content

Commit bf19037

Browse files
sara-slucacoelho
authored andcommitted
iwlwifi: mvm: mark MIC stripped MPDUs
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>
1 parent 9d0fc5a commit bf19037

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+2
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ static int iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr,
255255
return -1;
256256

257257
stats->flag |= RX_FLAG_DECRYPTED;
258+
if (pkt_flags & FH_RSCSR_RADA_EN)
259+
stats->flag |= RX_FLAG_MIC_STRIPPED;
258260
*crypt_len = IEEE80211_CCMP_HDR_LEN;
259261
return 0;
260262
case IWL_RX_MPDU_STATUS_SEC_TKIP:

0 commit comments

Comments
 (0)