build/patch/misc/wireless-rtl8189es.patch
Igor Pečovnik a742aa92e8
Add Realtek 8189ES and FS driver from repository (#1860)
* 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
2020-04-01 21:14:49 +02:00

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))