diff options
author | Tamizh chelvam <c_traja@qti.qualcomm.com> | 2015-10-29 08:27:42 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-11-04 12:30:20 -0500 |
commit | 90eceb3b5fb0d0f413f475165314d4578c3a46c4 (patch) | |
tree | 383be57aa4349777dc89dda8b617ef6ab3472d65 /drivers/net/wireless/ath/ath10k/htt_tx.c | |
parent | 3fab30f7e8f31a06702ee6b03a902caffa5bc724 (diff) |
ath10k: set peer MFP flag in peer assoc command
Set peer's management frame protection flag in peer assoc command,
this setting will enable/disable encrytion of management frames in fw.
Setting of this flag is based on whether MFP is enabled/disabled at STA
and a firmware feature flag ATH10K_FW_FEATURE_MFP_SUPPORT. This is because
only firmwares 10.1.561 and above have support for MFP.
Signed-off-by: Tamizh chelvam <c_traja@qti.qualcomm.com>
Signed-off-by: Manikanta pubbisetty <c_mpubbi@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/htt_tx.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/htt_tx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index 16823970dbfd..bd8f264ed8cd 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c | |||
@@ -477,6 +477,13 @@ int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) | |||
477 | 477 | ||
478 | msdu_id = res; | 478 | msdu_id = res; |
479 | 479 | ||
480 | if ((ieee80211_is_action(hdr->frame_control) || | ||
481 | ieee80211_is_deauth(hdr->frame_control) || | ||
482 | ieee80211_is_disassoc(hdr->frame_control)) && | ||
483 | ieee80211_has_protected(hdr->frame_control)) { | ||
484 | skb_put(msdu, IEEE80211_CCMP_MIC_LEN); | ||
485 | } | ||
486 | |||
480 | txdesc = ath10k_htc_alloc_skb(ar, len); | 487 | txdesc = ath10k_htc_alloc_skb(ar, len); |
481 | if (!txdesc) { | 488 | if (!txdesc) { |
482 | res = -ENOMEM; | 489 | res = -ENOMEM; |