diff options
author | Marek Kwaczynski <marek.kwaczynski@tieto.com> | 2015-01-24 05:14:53 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-01-27 09:25:23 -0500 |
commit | eebc67fef3eed8c768b9c046273dff6467b22cf4 (patch) | |
tree | 13c0a8c20736a3fc7a539074500810a8b2741150 | |
parent | e4e82e9af8f02f9f3e19d240170c8c4b68f28bd4 (diff) |
ath10k: fix pmf for wmi-tlv on qca6174
New wmi-tlv firmware uses HTT 3.0 protocol which
uses TX_FRM command for management frames (instead
of a dedicated command). To support PMF it is
necessary to provide explicit tailroom.
Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/htt_tx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index 2a8667e95c46..c1961e77d58d 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c | |||
@@ -454,6 +454,12 @@ int ath10k_htt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) | |||
454 | } | 454 | } |
455 | skb_cb->htt.txbuf_paddr = paddr; | 455 | skb_cb->htt.txbuf_paddr = paddr; |
456 | 456 | ||
457 | if ((ieee80211_is_action(hdr->frame_control) || | ||
458 | ieee80211_is_deauth(hdr->frame_control) || | ||
459 | ieee80211_is_disassoc(hdr->frame_control)) && | ||
460 | ieee80211_has_protected(hdr->frame_control)) | ||
461 | skb_put(msdu, IEEE80211_CCMP_MIC_LEN); | ||
462 | |||
457 | skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, | 463 | skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, |
458 | DMA_TO_DEVICE); | 464 | DMA_TO_DEVICE); |
459 | res = dma_mapping_error(dev, skb_cb->paddr); | 465 | res = dma_mapping_error(dev, skb_cb->paddr); |