summarylogtreecommitdiffstats
path: root/linux-6.1.patch
diff options
context:
space:
mode:
authorArpan Kapoor2023-02-09 11:54:24 +0530
committerArpan Kapoor2023-02-09 11:54:24 +0530
commitc9e79819584ed1e06fd1d325d46b7c7bc9010d54 (patch)
tree9a0050285894501457544202bcc3c58d40d4d384 /linux-6.1.patch
parent7b7b1cdfb0ea4f9003ad944d2ffde090a743b232 (diff)
downloadaur-8188eu-dkms.tar.gz
update to latest kernel version
Diffstat (limited to 'linux-6.1.patch')
-rw-r--r--linux-6.1.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/linux-6.1.patch b/linux-6.1.patch
new file mode 100644
index 000000000000..89ffbe7e85c7
--- /dev/null
+++ b/linux-6.1.patch
@@ -0,0 +1,20 @@
+diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c
+index 7d1ab56..bfc939b 100644
+--- a/os_dep/osdep_service.c
++++ b/os_dep/osdep_service.c
+@@ -2327,9 +2327,13 @@ inline u32 rtw_random32(void)
+ {
+ #ifdef PLATFORM_LINUX
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+- return prandom_u32();
++ #if (LINUX_VERSION_CODE < KERNEL_VERSION(6,1,0))
++ return prandom_u32();
++ #else
++ return get_random_u32();
++ #endif
+ #else
+- return random32();
++ return random32();
+ #endif
+ #elif defined(PLATFORM_WINDOWS)
+ #error "to be implemented\n"