mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-22 21:08:49 +00:00
* Add 8189es out of the tree patch from repository. * Added 8189FS version * Support building on kernel 5.6. for 88x2bu Tested for building on legacy, current and dev, removed old patches
15 lines
681 B
Diff
15 lines
681 B
Diff
diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
|
|
index b7ab5fd..b0c06c5 100644
|
|
--- a/os_dep/linux/ioctl_cfg80211.c
|
|
+++ b/os_dep/linux/ioctl_cfg80211.c
|
|
@@ -348,7 +348,9 @@ rtw_cfg80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
|
|
|
|
static u64 rtw_get_systime_us(void)
|
|
{
|
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0))
|
|
+ return ktime_to_us(ktime_get_boottime());
|
|
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
|
|
struct timespec ts = ktime_to_timespec(ktime_get_boottime());
|
|
return ((u64)ts.tv_sec*1000000) + ts.tv_nsec / 1000;
|
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
|