wifi: ath12k: fix WARN_ON during ath12k_mac_update_vif_chan
authorManish Dharanenthiran <quic_mdharane@quicinc.com>
Tue, 5 Sep 2023 13:29:41 +0000 (16:29 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 20 Sep 2023 13:14:40 +0000 (16:14 +0300)
commit8b8b990fe495e9be057249e1651b59b5ebacf2ef
treec98f3e201e7558cba7165513f86f0c0f218dae63
parent7791487cd16cafd018cba0bf73789111a9f16843
wifi: ath12k: fix WARN_ON during ath12k_mac_update_vif_chan

Fix WARN_ON() from ath12k_mac_update_vif_chan() if vdev is not up.
Since change_chanctx can be called even before vdev_up.

Do vdev stop followed by a vdev start in case of vdev is down.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0-02903-QCAHKSWPL_SILICONZ-1

Signed-off-by: Manish Dharanenthiran <quic_mdharane@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230802085852.19821-2-quic_mdharane@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c