mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-20 10:51:27 +00:00
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
From a3e9e837c5e2a16ec04fa72c3e00bb02fa73ef39 Mon Sep 17 00:00:00 2001
|
|
From: Nagarajan Maran <quic_nmaran@quicinc.com>
|
|
Date: Wed, 6 Jul 2022 15:04:40 +0530
|
|
Subject: [PATCH] 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.
|
|
|
|
Signed-off-by: Nagarajan Maran <quic_nmaran@quicinc.com>
|
|
---
|
|
drivers/net/wireless/ath/ath11k/core.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/core.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/core.c
|
|
@@ -1908,6 +1908,10 @@ static void ath11k_core_restart(struct w
|
|
ath11k_mac_tx_mgmt_pending_free, ar);
|
|
idr_destroy(&ar->txmgmt_idr);
|
|
wake_up(&ar->txmgmt_empty_waitq);
|
|
+
|
|
+ ar->monitor_vdev_id = -1;
|
|
+ clear_bit(ATH11K_FLAG_MONITOR_STARTED, &ar->monitor_flags);
|
|
+ clear_bit(ATH11K_FLAG_MONITOR_VDEV_CREATED, &ar->monitor_flags);
|
|
}
|
|
|
|
wake_up(&ab->wmi_ab.tx_credits_wq);
|