summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorYingying Tang <yintang@qti.qualcomm.com>2018-03-28 12:15:35 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-03-29 12:00:19 +0300
commit9cdd005750293c0e7e9276546e02b290d0bafeb0 (patch)
tree072dcb0bb816f4d94fad4391dfafb7d164e5bce2 /drivers/net
parentc3816c9ee12c235dde8f382619a38a5ce86fb548 (diff)
downloadlinux-9cdd005750293c0e7e9276546e02b290d0bafeb0.tar.xz
ath10k: fix TDLS peer TX data failure issue on encryped AP
For WPA encryption, QCA6174 firmware(version: WLAN.RM.4.4) will unblock data when M4 was sent successfully. For other encryption which didn't need 4-way handshake firmware will unblock the data when peer authorized. Since TDLS is 3-way handshake host need send authorize cmd to firmware to unblock data. Signed-off-by: Yingying Tang <yintang@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 659b23809b47..0a249cd0662e 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -5932,6 +5932,10 @@ static int ath10k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
ath10k_warn(ar, "Peer %pM disappeared!\n", peer_addr);
spin_unlock_bh(&ar->data_lock);
+ if (sta && sta->tdls)
+ ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr,
+ WMI_PEER_AUTHORIZE, 1);
+
exit:
mutex_unlock(&ar->conf_mutex);
return ret;