|
@@ -234,8 +234,8 @@ static void iwl_mvm_get_signal_strength(struct iwl_mvm *mvm,
|
|
|
|
|
|
static int iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr,
|
|
|
struct ieee80211_rx_status *stats,
|
|
|
- struct iwl_rx_mpdu_desc *desc, int queue,
|
|
|
- u8 *crypt_len)
|
|
|
+ struct iwl_rx_mpdu_desc *desc, u32 pkt_flags,
|
|
|
+ int queue, u8 *crypt_len)
|
|
|
{
|
|
|
u16 status = le16_to_cpu(desc->status);
|
|
|
|
|
@@ -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:
|
|
@@ -272,6 +274,10 @@ static int iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr,
|
|
|
if ((status & IWL_RX_MPDU_STATUS_SEC_MASK) ==
|
|
|
IWL_RX_MPDU_STATUS_SEC_WEP)
|
|
|
*crypt_len = IEEE80211_WEP_IV_LEN;
|
|
|
+
|
|
|
+ if (pkt_flags & FH_RSCSR_RADA_EN)
|
|
|
+ stats->flag |= RX_FLAG_ICV_STRIPPED;
|
|
|
+
|
|
|
return 0;
|
|
|
case IWL_RX_MPDU_STATUS_SEC_EXT_ENC:
|
|
|
if (!(status & IWL_RX_MPDU_STATUS_MIC_OK))
|
|
@@ -850,7 +856,9 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi,
|
|
|
|
|
|
rx_status = IEEE80211_SKB_RXCB(skb);
|
|
|
|
|
|
- if (iwl_mvm_rx_crypto(mvm, hdr, rx_status, desc, queue, &crypt_len)) {
|
|
|
+ if (iwl_mvm_rx_crypto(mvm, hdr, rx_status, desc,
|
|
|
+ le32_to_cpu(pkt->len_n_flags), queue,
|
|
|
+ &crypt_len)) {
|
|
|
kfree_skb(skb);
|
|
|
return;
|
|
|
}
|