linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ath10k: remove sw encryption for pmf
@ 2015-01-20 10:42 Michal Kazior
  2015-01-20 10:42 ` [PATCH 2/2] ath10k: fix pmf for wmi-tlv on qca6174 Michal Kazior
  2015-01-27 14:26 ` [PATCH 1/2] ath10k: remove sw encryption for pmf Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Michal Kazior @ 2015-01-20 10:42 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless, Marek Kwaczynski, Michal Kazior

From: Marek Kwaczynski <marek.kwaczynski@tieto.com>

Software encryption was never necessary.
Tested with fw 636 and fw 10.x.

Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
---
 drivers/net/wireless/ath/ath10k/mac.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 9524bc5..78834c3 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -58,10 +58,7 @@ static int ath10k_send_key(struct ath10k_vif *arvif,
 	switch (key->cipher) {
 	case WLAN_CIPHER_SUITE_CCMP:
 		arg.key_cipher = WMI_CIPHER_AES_CCM;
-		if (arvif->vdev_type == WMI_VDEV_TYPE_AP)
-			key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT;
-		else
-			key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX;
+		key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV_MGMT;
 		break;
 	case WLAN_CIPHER_SUITE_TKIP:
 		arg.key_cipher = WMI_CIPHER_TKIP;
-- 
1.8.5.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ath10k: fix pmf for wmi-tlv on qca6174
  2015-01-20 10:42 [PATCH 1/2] ath10k: remove sw encryption for pmf Michal Kazior
@ 2015-01-20 10:42 ` Michal Kazior
  2015-01-27 14:26 ` [PATCH 1/2] ath10k: remove sw encryption for pmf Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Michal Kazior @ 2015-01-20 10:42 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless, Marek Kwaczynski, Michal Kazior

From: Marek Kwaczynski <marek.kwaczynski@tieto.com>

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>
---
 drivers/net/wireless/ath/ath10k/htt_tx.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c
index 5c64139..5780b87 100644
--- a/drivers/net/wireless/ath/ath10k/htt_tx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_tx.c
@@ -481,6 +481,12 @@ int ath10k_htt_tx(struct ath10k_htt *htt, struct sk_buff *msdu)
 	}
 	skb_cb->htt.txbuf_paddr = paddr;
 
+	if ((ieee80211_is_action(hdr->frame_control) ||
+	     ieee80211_is_deauth(hdr->frame_control) ||
+	     ieee80211_is_disassoc(hdr->frame_control)) &&
+	     ieee80211_has_protected(hdr->frame_control))
+		skb_put(msdu, IEEE80211_CCMP_MIC_LEN);
+
 	skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len,
 				       DMA_TO_DEVICE);
 	res = dma_mapping_error(dev, skb_cb->paddr);
-- 
1.8.5.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ath10k: remove sw encryption for pmf
  2015-01-20 10:42 [PATCH 1/2] ath10k: remove sw encryption for pmf Michal Kazior
  2015-01-20 10:42 ` [PATCH 2/2] ath10k: fix pmf for wmi-tlv on qca6174 Michal Kazior
@ 2015-01-27 14:26 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2015-01-27 14:26 UTC (permalink / raw)
  To: Michal Kazior; +Cc: ath10k, Marek Kwaczynski, linux-wireless

Michal Kazior <michal.kazior@tieto.com> writes:

> From: Marek Kwaczynski <marek.kwaczynski@tieto.com>
>
> Software encryption was never necessary.
> Tested with fw 636 and fw 10.x.
>
> Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com>
> Signed-off-by: Michal Kazior <michal.kazior@tieto.com>

Thanks, both patches applied to ath.git.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-27 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20 10:42 [PATCH 1/2] ath10k: remove sw encryption for pmf Michal Kazior
2015-01-20 10:42 ` [PATCH 2/2] ath10k: fix pmf for wmi-tlv on qca6174 Michal Kazior
2015-01-27 14:26 ` [PATCH 1/2] ath10k: remove sw encryption for pmf Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).