Browse Source

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 years ago
parent
commit
50250837e4
1 changed files with 1 additions and 0 deletions
  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,