ath11k: fix WARN_ON during ath11k_mac_update_vif_chan
authorVenkateswara Naralasetty <quic_vnaralas@quicinc.com>
Wed, 9 Feb 2022 14:13:38 +0000 (19:43 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 14 Feb 2022 17:46:24 +0000 (19:46 +0200)
commit5ed98fb704d97894a2c7217989fd8290e4b7b985
tree3647e681907ad74a56e4a3a2c16552996b46b8f4
parent8c4c567fa291e4805d5116f1333b2ed83877032b
ath11k: fix WARN_ON during ath11k_mac_update_vif_chan

Fix WARN_ON() from ath11k_mac_update_vif_chan() if vdev is not up.
Since change_chanctx can be called even before vdev_up from
ieee80211_start_ap->ieee80211_vif_use_channel->
ieee80211_recalc_radar_chanctx.

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

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1

Signed-off-by: Venkateswara Naralasetty <quic_vnaralas@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/1644416019-820-1-git-send-email-quic_vnaralas@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c