From e3344be85a417d96519cb67fe86166ad1105bfe8 Mon Sep 17 00:00:00 2001 From: ivanovborislav <81085106+ivanovborislav@users.noreply.github.com> Date: Sun, 22 Jan 2023 10:11:39 +0200 Subject: [PATCH] Add Kernel 6.2 support --- os_dep/osdep_service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index 94ca8a3..d52532b 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -2910,7 +2910,9 @@ u64 rtw_division64(u64 x, u64 y) inline u32 rtw_random32(void) { #ifdef PLATFORM_LINUX -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)) + return get_random_u32(); +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) return prandom_u32(); #elif (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)) u32 random_int;