From d3ccca2545bb9d430ee796e7a243129c01a2abf7 Mon Sep 17 00:00:00 2001 From: Prakash Manjunathappa Date: Thu, 5 May 2016 19:23:19 -0700 Subject: [PATCH] qcacld-3.0: Remove extra ticks-to-msec conversion qdf_wait_single_event expects msecs as the timeout value. However, two references in dp, second 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 qcacmn project. Change-Id: I11c36ecf54b04cf1e3671a86594822b39b8ccaaf Acked-by: Orhan K AKYILDIZ CRs-fixed: 1012345 --- core/dp/txrx/ol_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index c2b2490960dc..0d1e22e60021 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/core/dp/txrx/ol_txrx.c @@ -1485,7 +1485,7 @@ ol_txrx_peer_attach(ol_txrx_vdev_handle vdev, uint8_t *peer_mac_addr) if (wait_on_deletion) { /* wait for peer deletion */ rc = qdf_wait_single_event(&vdev->wait_delete_comp, - qdf_system_msecs_to_ticks(PEER_DELETION_TIMEOUT)); + PEER_DELETION_TIMEOUT); if (!rc) { TXRX_PRINT(TXRX_PRINT_LEVEL_ERR, "timedout waiting for peer(%d) deletion\n",