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
This commit is contained in:
Jianmin Zhu 2021-10-23 23:05:17 +08:00 • committed by Gerrit - the friendly Code Review server
commit a9983f70bd

View file

@ -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");