diff mbox series

ath11k: fix PMF config during peer assoc

Message ID 1559901181-8292-1-git-send-email-mpubbise@codeaurora.org (mailing list archive)
State Accepted
Commit 819d9adcb7f75c949b12660abdbbaac49363f619
Delegated to: Kalle Valo
Headers show
Series ath11k: fix PMF config during peer assoc | expand

Commit Message

Manikanta Pubbisetty June 7, 2019, 9:53 a.m. UTC
Currently, PMF config for peers is not being sent to the
firmware in peer assoc command. As a result, in cases where
PMF is enabled, there would be mismatch in configuration
between host software and the firmware, eventually leading
to packet drops in mac80211.

Fix it by setting appropriate PMF flags during peer assoc.

Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/wmi.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Kalle Valo June 12, 2019, 11:09 a.m. UTC | #1
Manikanta Pubbisetty <mpubbise@codeaurora.org> wrote:

> Currently, PMF config for peers is not being sent to the
> firmware in peer assoc command. As a result, in cases where
> PMF is enabled, there would be mismatch in configuration
> between host software and the firmware, eventually leading
> to packet drops in mac80211.
> 
> Fix it by setting appropriate PMF flags during peer assoc.
> 
> Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath11k-bringup branch of ath.git, thanks.

819d9adcb7f7 ath11k: fix PMF config during peer assoc
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c
index 2fb9941..0f875ed 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.c
+++ b/drivers/net/wireless/ath/ath11k/wmi.c
@@ -1683,6 +1683,10 @@  ath11k_wmi_copy_peer_flags(struct wmi_peer_assoc_complete_cmd *cmd,
 	if (param->safe_mode_enabled)
 		cmd->peer_flags &= ~(WMI_PEER_NEED_PTK_4_WAY |
 				     WMI_PEER_NEED_GTK_2_WAY);
+
+	if (param->is_pmf_enabled)
+		cmd->peer_flags |= WMI_PEER_PMF;
+
 	/* Disable AMSDU for station transmit, if user configures it */
 	/* Disable AMSDU for AP transmit to 11n Stations, if user configures
 	 * it