Commit 485add35 authored by Pradeep Kumar Chitrapu's avatar Pradeep Kumar Chitrapu Committed by Kalle Valo

ath11k: fix pdev when invoking ath11k_wmi_send_twt_enable_cmd()

The code currently uses the wrong pdev id when enabling TWT. Fix this by
using the correct ones.

Fixes: e65a616f4e74 ("ath11k: add TWT support")
Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
Signed-off-by: default avatarPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2ad578fd
...@@ -1917,9 +1917,9 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, ...@@ -1917,9 +1917,9 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
if (changed & BSS_CHANGED_TWT) { if (changed & BSS_CHANGED_TWT) {
if (info->twt_requester || info->twt_responder) if (info->twt_requester || info->twt_responder)
ath11k_wmi_send_twt_enable_cmd(ar, ar->pdev_idx); ath11k_wmi_send_twt_enable_cmd(ar, ar->pdev->pdev_id);
else else
ath11k_wmi_send_twt_disable_cmd(ar, ar->pdev_idx); ath11k_wmi_send_twt_disable_cmd(ar, ar->pdev->pdev_id);
} }
if (changed & BSS_CHANGED_HE_OBSS_PD) if (changed & BSS_CHANGED_HE_OBSS_PD)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment