Skip to contentSkip to conversation

ath11k: fix tkip mic error reporting to cfg80211

PATCH In review Sathishkumar Muruganandam 2 participants 2 messages Oct 11, 2019 – Oct 15, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fix tkip mic error reporting to cfg80211

ieee80211_rx_status flag was not updated with MMIC_STRIPPED and DECRYPTED bits during TKIP MIC error detection from RxDMA and hence this is not getting reported to cfg80211_michael_mic_failure() for WPA countermeasures.

---
 drivers/net/wireless/ath/ath11k/dp_rx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +2 -1
index faea5b12a2d6..9491a479fab5 100644
@@ -3021,7 +3021,8 @@ static void ath11k_dp_rx_h_tkip_mic_err(struct ath11k *ar, struct sk_buff *msdu,
 
 	ath11k_dp_rx_h_ppdu(ar, desc, status);
 
-	status->flag |= RX_FLAG_MMIC_ERROR;
+	status->flag |= (RX_FLAG_MMIC_STRIPPED | RX_FLAG_MMIC_ERROR |
+			 RX_FLAG_DECRYPTED);
 
 	ath11k_dp_rx_h_undecap(ar, msdu, desc,
 			       HAL_ENCRYPT_TYPE_TKIP_MIC, status, false);
Signature · 7 lines
2.7.4


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 6 lines · Sathishkumar Muruganandam

ieee80211_rx_status flag was not updated with MMIC_STRIPPED and DECRYPTED bits during TKIP MIC error detection from RxDMA and hence this is not getting reported to cfg80211_michael_mic_failure() for WPA countermeasures.

Patch applied to ath11k-bringup branch of ath.git, thanks.

e44597a02dad ath11k: fix tkip mic error reporting to cfg80211

Signature · 9 lines
https://patchwork.kernel.org/patch/11184905/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k