mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Fix kernel 6.1 compilation
wifi: cfg80211: Add link_id parameter to various key operations for MLO wifi: cfg80211: Add link_id to cfg80211_ch_switch_started_notify() net: drop the weight argument from netif_napi_add random: convert get_random_int/long into get_random_u32/u64 Link: https://lore.kernel.org/r/20220722131143.3438042-1-quic_vjakkam@quicinc.com Link: https://lore.kernel.org/r/20220722131143.3438042-2-quic_vjakkam@quicinc.com Link: https://lore.kernel.org/r/20220730052643.1959111-4-quic_vjakkam@quicinc.com Link: https://lore.kernel.org/r/20220927132753.750069-1-kuba@kernel.org Link:e7a7b84e33Link:de492c83caLink:c440408cf6
This commit is contained in:
@@ -1617,8 +1617,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(4, 11, 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;
|
||||
@@ -1627,7 +1628,6 @@ inline u32 rtw_random32(void)
|
||||
#else
|
||||
return random32();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void rtw_buf_free(u8 **buf, u32 *buf_len)
|
||||
|
||||
Reference in New Issue
Block a user