From a9983f70bd2c4257841bc6dd6600b68643e08207 Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Sat, 23 Oct 2021 23:05:17 +0800 Subject: [PATCH] qcacld-3.0: channel_switch_complete_evt need wake up all waiting threads 2 threads blocked to wait channel_switch_complete_evt for SAP channel switch is already in progress, qdf_event_set only woke up 1st thread later, 2nd thread still kept blocked with hold net_dev for debug id NET_DEV_HOLD_COUNTRY_CHANGE_UPDATE_SAP, leak happened. Change-Id: Iad296f68aeaefe5a6b88ad6bea95cc377b2ae515 CRs-Fixed: 3061960 --- .../cmn_services/policy_mgr/src/wlan_policy_mgr_action.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c index 3f15455d58ed..d0db9e64a6fa 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c @@ -2600,8 +2600,7 @@ QDF_STATUS policy_mgr_set_chan_switch_complete_evt( return QDF_STATUS_SUCCESS; } - status = qdf_event_set( - &pm_ctx->channel_switch_complete_evt); + status = qdf_event_set_all(&pm_ctx->channel_switch_complete_evt); if (!QDF_IS_STATUS_SUCCESS(status)) { policy_mgr_err("set event failed");