Skip to contentSkip to conversation

ath11k: fix PMF config during peer assoc

PATCH In review Manikanta Pubbisetty 2 participants 2 messages Jun 7, 2019 – Jun 12, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fix PMF config during peer assoc

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.

---
 drivers/net/wireless/ath/ath11k/wmi.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/wireless/ath/ath11k/wmi.c +4 -0
index 2fb9941..0f875ed 100644
@@ -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
Signature · 7 lines
2.7.4


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 10 lines · Manikanta Pubbisetty

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.

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

819d9adcb7f7 ath11k: fix PMF config during peer assoc

Signature · 9 lines
https://patchwork.kernel.org/patch/10981261/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k