]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath12k: avoid duplicated vdev down
authorKang Yang <quic_kangyang@quicinc.com>
Mon, 29 Apr 2024 08:15:23 +0000 (16:15 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 7 May 2024 10:18:23 +0000 (13:18 +0300)
ath12k_mac_op_unassign_vif_chanctx() will do vdev down in function
ath12k_mac_monitor_stop(). So no need to do vdev down again.

remove the duplicated one.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Kang Yang <quic_kangyang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240429081525.983-4-quic_kangyang@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c

index cdea47faef74215c85c3037148d74dce5042cfd8..1fc727b614d6616cb1ff08cf6eb23233e4373591 100644 (file)
@@ -7407,10 +7407,6 @@ ath12k_mac_op_unassign_vif_chanctx(struct ieee80211_hw *hw,
        }
        arvif->is_started = false;
 
-       if (ab->hw_params->vdev_start_delay &&
-           arvif->vdev_type == WMI_VDEV_TYPE_MONITOR)
-               ath12k_wmi_vdev_down(ar, arvif->vdev_id);
-
        if (arvif->vdev_type != WMI_VDEV_TYPE_MONITOR &&
            ar->num_started_vdevs == 1 && ar->monitor_vdev_created)
                ath12k_mac_monitor_stop(ar);