Browse Source

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 <[email protected]>
CRs-fixed: 1012345
Prakash Manjunathappa 9 năm trước cách đây
mục cha
commit
d3ccca2545
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/dp/txrx/ol_txrx.c

+ 1 - 1
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",