wifi: ath11k: fix monitor vdev creation with firmware recovery
authorNagarajan Maran <quic_nmaran@quicinc.com>
Fri, 14 Oct 2022 15:50:54 +0000 (21:20 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 28 Oct 2022 13:40:22 +0000 (16:40 +0300)
commitf3ca72b0327101a074a871539e61775d43908ca4
tree35aa56c9256e329b55dd98499291624f88519a33
parentacd4324e5f1f11351630234297f95076f0ac9a2f
wifi: ath11k: fix monitor vdev creation with firmware recovery

During firmware recovery, the monitor interface is not
getting created in the driver and firmware since
the respective flags are not updated properly.

So after firmware recovery is successful, when monitor
interface is brought down manually, firmware assertion
is observed, since we are trying to bring down the
interface which is not yet created in the firmware.

Fix this by updating the monitor flags properly per
phy#, during firmware recovery.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

Signed-off-by: Nagarajan Maran <quic_nmaran@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221014155054.11471-1-quic_nmaran@quicinc.com
drivers/net/wireless/ath/ath11k/core.c