ath10k: strip protected flag in managment frames
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.
Signed-off-by Marek Kwaczynski <[email protected]>
Signed-off-by Bartosz Markowski <[email protected]>
--- drivers/net/wireless/ath/ath10k/wmi.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath10k/wmi.c +7 -0
@@ -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
Kalle Valo
AppliedPATCH 1/1 ath10k: strip protected flag in managment frames
Quoted 8 lines · Bartosz Markowski
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.
Signed-off-by Marek Kwaczynski <[email protected]>Signed-off-by Bartosz Markowski <[email protected]>
Thanks, applied.
Signature · 1 line
Kalle Valo