mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
qcacld-3.0: Set sar safety req resp event before unsolited work stop
Currently when sar safety unsolited timer expires, driver schedules a work to send sar safety unsolited events to user space. When driver receives sar set command from user space it tries to stop this work with delayed work stop sync. This delayed work stop sync API waits for work to get complete and then it stops the work, because of this, work runs the complete for loop and sends extra sar safety unsolicited events even after receiving sar set command. To addrerss above issue, set the sar safety request response event before delayed work stop sync to complete the work. Change-Id: I3485e4b1ea600393ff2d9512a055de92d0a3d612 CRs-Fixed: 3213334
This commit is contained in:
parent
d4e8774068
commit
38efdc0db2
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021, 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -1082,10 +1082,11 @@ void wlan_hdd_sar_timers_reset(struct hdd_context *hdd_ctx)
|
|||
if (QDF_IS_STATUS_SUCCESS(status))
|
||||
hdd_nofl_debug("sar safety timer started");
|
||||
|
||||
qdf_event_set(&hdd_ctx->sar_safety_req_resp_event);
|
||||
|
||||
qdf_delayed_work_stop_sync(&hdd_ctx->sar_safety_unsolicited_work);
|
||||
hdd_nofl_debug("sar safety unsolicited work stopped");
|
||||
|
||||
qdf_event_set(&hdd_ctx->sar_safety_req_resp_event);
|
||||
}
|
||||
|
||||
void wlan_hdd_sar_timers_init(struct hdd_context *hdd_ctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue