@@ -202,8 +202,10 @@ typedef irqreturn_t(*FN_ISR) (int irq, void *dev_id, struct pt_regs *ptregs);
202
202
#endif /* LINUX_VERS >= 4.11.0 */
203
203
204
204
#if LINUX_VERSION_CODE >= KERNEL_VERSION (2 , 6 , 29 )
205
+ #if LINUX_VERSION_CODE < KERNEL_VERSION (6 , 13 , 0 )
205
206
#include <net/lib80211.h>
206
207
#endif
208
+ #endif
207
209
#if LINUX_VERSION_CODE >= KERNEL_VERSION (2 , 6 , 29 )
208
210
#include <linux/ieee80211.h>
209
211
#else
@@ -978,9 +980,9 @@ static inline struct inode *file_inode(const struct file *f)
978
980
#if LINUX_VERSION_CODE >= KERNEL_VERSION (4 , 14 , 0 )
979
981
// New google android GKI not allow kernel_write/kernel_read, and use
980
982
// below for temporary overcome, and waiting for get rid of that for future
981
- #if LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 4 , 0 )
983
+ #if ( LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 4 , 0 ) && LINUX_VERSION_CODE < KERNEL_VERSION ( 6 , 13 , 0 ) )
982
984
MODULE_IMPORT_NS (VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver );
983
- #endif // LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
985
+ #endif // LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0)
984
986
#define vfs_write (fp , buf , len , pos ) kernel_write(fp, buf, len, pos)
985
987
#define vfs_read (fp , buf , len , pos ) kernel_read(fp, buf, len, pos)
986
988
int kernel_read_compat (struct file * file , loff_t offset , char * addr , unsigned long count );
0 commit comments