Skip to content

Commit 54573e2

Browse files
krish2718danieldegrasse
authored andcommitted
modules: nrf_wifi: Fix accuracy of microseconds API
Using ms and converting to us is a bad idea as we still get ms granualrity in us units. Use the proper API to get us granularity. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent dd594d5 commit 54573e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nrf_wifi/os/shim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ static void zep_shim_work_kill(void *item)
802802

803803
static unsigned long zep_shim_time_get_curr_us(void)
804804
{
805-
return k_uptime_get() * USEC_PER_MSEC;
805+
return k_ticks_to_us_floor64(k_uptime_ticks());
806806
}
807807

808808
static unsigned int zep_shim_time_elapsed_us(unsigned long start_time_us)

0 commit comments

Comments
 (0)