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
This commit is contained in:
Ashish Kumar Dhanotiya
2020-03-05 14:32:31 +05:30
committed by nshrivas
parent f4bee3a7c5
commit 50250837e4

View File

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