]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: ath12k: fix calling correct function for rx monitor mode
authorTamizh Chelvam Raja <quic_tamizhr@quicinc.com>
Tue, 30 Apr 2024 09:14:12 +0000 (14:44 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 7 May 2024 10:08:49 +0000 (13:08 +0300)
Currently in ath12k_dp_tx_htt_monitor_mode_ring_config()
ath12k_dp_tx_htt_tx_monitor_mode_ring_config() function wrongly called twice.
Fix that by calling ath12k_dp_tx_htt_rx_monitor_mode_ring_config().

Currently monitor mode is disabled in driver so the change is compile
tested and boot sequence verified.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Tamizh Chelvam Raja <quic_tamizhr@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240430091414.2486196-2-quic_tamizhr@quicinc.com
drivers/net/wireless/ath/ath12k/dp_tx.c

index a7c7a868c14ce05dab713f29cb76e7faa9681343..7adfdefc3bdcc7937f3f56a077787b0a550a091b 100644 (file)
@@ -1069,7 +1069,7 @@ int ath12k_dp_tx_htt_monitor_mode_ring_config(struct ath12k *ar, bool reset)
                return ret;
        }
 
-       ret = ath12k_dp_tx_htt_tx_monitor_mode_ring_config(ar, reset);
+       ret = ath12k_dp_tx_htt_rx_monitor_mode_ring_config(ar, reset);
        if (ret) {
                ath12k_err(ab, "failed to setup rx monitor filter %d\n", ret);
                return ret;