diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index f499f38..81c8c64 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -342,7 +342,8 @@ static u64 rtw_get_systime_us(void) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)) ktime_t ts; ts = ktime_get_boottime(); - return do_div(ts, 1000); + do_div(ts, (uint32_t)1000); + return ts; #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)) struct timespec ts; get_monotonic_boottime(&ts);