Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9983f70 authored by Jianmin Zhu's avatar Jianmin Zhu Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 3e4a8285
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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");