Skip to contentSkip to conversation

ath10k: strip protected flag in managment frames

PATCH New Bartosz Markowski 2 participants 2 messages May 8, 2013 – May 9, 2013 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath10k: strip protected flag in managment frames

From: Marek Kwaczynski <[email protected]>

Decryption and all crypto verification are implemented in HW. Mac80211 tries to decrypt RX CCMP managment frames without this patch.

---
 drivers/net/wireless/ath/ath10k/wmi.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath10k/wmi.c +7 -0
index 15e8123..d2d712d 100644
@@ -355,6 +355,13 @@ static int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb)
 	hdr = (struct ieee80211_hdr *)skb->data;
 	fc = le16_to_cpu(hdr->frame_control);
 
+	if (fc & IEEE80211_FCTL_PROTECTED) {
+		status->flag |= RX_FLAG_DECRYPTED | RX_FLAG_IV_STRIPPED |
+				RX_FLAG_MMIC_STRIPPED;
+		hdr->frame_control = __cpu_to_le16(fc &
+					~IEEE80211_FCTL_PROTECTED);
+	}
+
 	ath10k_dbg(ATH10K_DBG_WMI,
 		   "event mgmt rx skb %p len %d ftype %02x stype %02x\n",
 		   skb, skb->len,
Signature · 1 line
1.7.5.4