浏览代码

qcacld-3.0: Reset qdf event before wait

Currently sar safety request response event is not getting
reset before it starts wait for completion in sar
unsolicited timer callback which may cause issues if this
event gets complete multiple times.

To avoid above issue, reset the sar safety request response
event before it starts wait for completion.

CRs-Fixed: 2634885
Change-Id: I47b8abd6e960acc4dd9eef43faebe7e34203c380
Ashish Kumar Dhanotiya 5 年之前
父节点
当前提交
50250837e4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/hdd/src/wlan_hdd_sar_limits.c

+ 1 - 0
core/hdd/src/wlan_hdd_sar_limits.c

@@ -503,6 +503,7 @@ static void hdd_sar_unsolicited_timer_cb(void *user_data)
 	hdd_nofl_debug("Sar unsolicited timer expired");
 
 	for (i = 0; i < hdd_ctx->config->sar_safety_req_resp_retry; i++) {
+		qdf_event_reset(&hdd_ctx->sar_safety_req_resp_event);
 		hdd_send_sar_unsolicited_event(hdd_ctx);
 		status = qdf_wait_for_event_completion(
 				&hdd_ctx->sar_safety_req_resp_event,