summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath11k/wow.c
diff options
context:
space:
mode:
authorBaochen Qiang <quic_bqiang@quicinc.com>2022-09-24 15:48:18 +0200
committerKalle Valo <quic_kvalo@quicinc.com>2022-09-26 11:40:41 +0200
commitd50ebec14535c4937b8b1ef2b6f7473373263a2f (patch)
tree806cf64628e561cc338492a54551c56bf3ea5f8a /drivers/net/wireless/ath/ath11k/wow.c
parentwifi: ath11k: Add spectral scan support for 160 MHz (diff)
downloadlinux-d50ebec14535c4937b8b1ef2b6f7473373263a2f.tar.xz
linux-d50ebec14535c4937b8b1ef2b6f7473373263a2f.zip
wifi: ath11k: Remove redundant ath11k_mac_drain_tx
ath11k_mac_drain_tx is already called in ath11k_mac_wait_tx_complete, no need to call it again. So remove it. This is found in code review. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20220919020259.1746-1-quic_bqiang@quicinc.com
Diffstat (limited to '')
-rw-r--r--drivers/net/wireless/ath/ath11k/wow.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/wow.c b/drivers/net/wireless/ath/ath11k/wow.c
index 0bf716fb0e70..72196b8ce79e 100644
--- a/drivers/net/wireless/ath/ath11k/wow.c
+++ b/drivers/net/wireless/ath/ath11k/wow.c
@@ -703,7 +703,6 @@ int ath11k_wow_op_suspend(struct ieee80211_hw *hw,
goto cleanup;
}
- ath11k_mac_drain_tx(ar);
ret = ath11k_mac_wait_tx_complete(ar);
if (ret) {
ath11k_warn(ar->ab, "failed to wait tx complete: %d\n", ret);