qcacld-3.0: use qdf_do_div to do 64 bit division
Use qdf_do_div() for 64 bit division, because '/'
can't be used for 64 bit division on arm32 platform.
Change-Id: I047334565643e695ac343a5da06e030d8e37d7e4
CRs-Fixed: 2110736
diff --git a/core/hdd/src/wlan_hdd_tsf.c b/core/hdd/src/wlan_hdd_tsf.c
index bfacfe1..45f6a1c 100644
--- a/core/hdd/src/wlan_hdd_tsf.c
+++ b/core/hdd/src/wlan_hdd_tsf.c
@@ -586,13 +586,15 @@
if (host_time < adapter->last_host_time)
ret = hdd_uint64_minus(adapter->last_target_time,
- (adapter->last_host_time - host_time) /
- HOST_TO_TARGET_TIME_RATIO,
+ qdf_do_div(adapter->last_host_time -
+ host_time,
+ HOST_TO_TARGET_TIME_RATIO),
target_time);
else
ret = hdd_uint64_plus(adapter->last_target_time,
- (host_time - adapter->last_host_time) /
- HOST_TO_TARGET_TIME_RATIO,
+ qdf_do_div(host_time -
+ adapter->last_host_time,
+ HOST_TO_TARGET_TIME_RATIO),
target_time);
if (in_cap_state)