2022-05-18 15:49:41 +00:00
|
|
|
From: Sophie Brun <sophie@offensive-security.com>
|
|
|
|
Date: Wed, 18 May 2022 17:47:55 +0200
|
|
|
|
Subject: Build support with kernel v5.17
|
|
|
|
|
|
|
|
Origin: https://github.com/aircrack-ng/rtl8188eus/commit/13cc38399eb44f234a52dde5f94509e54a09c71f
|
|
|
|
---
|
2022-10-06 13:05:13 +00:00
|
|
|
os_dep/linux/rtw_proc.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
2022-05-18 15:49:41 +00:00
|
|
|
|
|
|
|
diff --git a/os_dep/linux/rtw_proc.c b/os_dep/linux/rtw_proc.c
|
2022-10-06 13:05:13 +00:00
|
|
|
index 8b1a424..9bd4041 100644
|
2022-05-18 15:49:41 +00:00
|
|
|
--- a/os_dep/linux/rtw_proc.c
|
|
|
|
+++ b/os_dep/linux/rtw_proc.c
|
2022-10-06 13:05:13 +00:00
|
|
|
@@ -39,6 +39,10 @@ inline struct proc_dir_entry *get_rtw_drv_proc(void)
|
2022-06-21 10:19:30 +00:00
|
|
|
#define proc_get_parent_data(inode) PDE((inode))->parent->data
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#if(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
|
|
|
|
+#define PDE_DATA(inode) pde_data(inode)
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24))
|
|
|
|
#define get_proc_net proc_net
|
|
|
|
#else
|