From 6a4c9803a37c63448368b93bd3567bdfbb6d5a64 Mon Sep 17 00:00:00 2001 From: Prakash Manjunathappa Date: Thu, 5 May 2016 19:04:26 -0700 Subject: [PATCH] qcacmn: Remove extra ticks-to-msec conversion qdf_wait_single_event expects msecs as the timeout value. However, two references in dp, first of which is this instance, passes the value in ticks. This causes the value to be converted to msecs a second time by the function and hence an incorrect timeout value. The other instance is in the qcacld-3.0 project. Change-Id: Ic73f5b22e987589c1f0607ced6ae9e51ff3c52c2 Acked-by: Orhan K AKYILDIZ CRs-fixed: 1012345 --- htc/htc_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htc/htc_recv.c b/htc/htc_recv.c index d56f6e5097..9ce76f2fe9 100644 --- a/htc/htc_recv.c +++ b/htc/htc_recv.c @@ -612,7 +612,7 @@ A_STATUS htc_wait_recv_ctrl_message(HTC_TARGET *target) /* Wait for BMI request/response transaction to complete */ if (qdf_wait_single_event(&target->ctrl_response_valid, - qdf_system_msecs_to_ticks(HTC_CONTROL_RX_TIMEOUT))) { + HTC_CONTROL_RX_TIMEOUT)) { QDF_BUG(0); return A_ERROR; }