summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/txrx.c
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2013-12-13 13:44:16 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2013-12-16 14:13:34 +0100
commit2256940010aab059dc238ab81b7b562b17942ec8 (patch)
tree27e5a2a07a96480fb26072d0bd6b0c9e0f87f47b /drivers/net/wireless/ath/ath10k/txrx.c
parentath10k: fix WEP Shared authentication (diff)
downloadlinux-2256940010aab059dc238ab81b7b562b17942ec8.tar.xz
linux-2256940010aab059dc238ab81b7b562b17942ec8.zip
ath10k: handle TKIP MIC error correctly
We should check MIC error flag base on rx_attention, to have consistent status of MIC failure and FCS error. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/txrx.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c
index 22829803f087..74f45fa6f428 100644
--- a/drivers/net/wireless/ath/ath10k/txrx.c
+++ b/drivers/net/wireless/ath/ath10k/txrx.c
@@ -231,7 +231,7 @@ void ath10k_process_rx(struct ath10k *ar, struct htt_rx_info *info)
~IEEE80211_FCTL_PROTECTED);
}
- if (info->status == HTT_RX_IND_MPDU_STATUS_TKIP_MIC_ERR)
+ if (info->mic_err)
status->flag |= RX_FLAG_MMIC_ERROR;
if (info->fcs_err)