瀏覽代碼

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
Jianmin Zhu 3 年之前
父節點
當前提交
26e98c0815
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

+ 1 - 2
components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

@@ -2761,8 +2761,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");