hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/linuxver.h
old mode 100644new mode 100755
....@@ -931,8 +931,14 @@
931931 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) */
932932
933933 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
934
+#ifdef CONFIG_NO_GKI
934935 #define vfs_write(fp, buf, len, pos) kernel_write(fp, buf, len, pos)
935936 #define vfs_read(fp, buf, len, pos) kernel_read(fp, buf, len, pos)
937
+#else
938
+#define vfs_write(fp, buf, len, pos) ({ UNUSED_PARAMETER(fp); UNUSED_PARAMETER(buf); UNUSED_PARAMETER(len); UNUSED_PARAMETER(pos); -EPERM; })
939
+#define vfs_read(fp, buf, len, pos) ({ UNUSED_PARAMETER(fp); UNUSED_PARAMETER(buf); UNUSED_PARAMETER(len); UNUSED_PARAMETER(pos); -EPERM; })
940
+#define filp_open(filename, flags, mode) ({ UNUSED_PARAMETER(filename); UNUSED_PARAMETER(flags); UNUSED_PARAMETER(mode); ERR_PTR(-EPERM); })
941
+#endif
936942 int kernel_read_compat(struct file *file, loff_t offset, char *addr, unsigned long count);
937943 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) */
938944 #define kernel_read_compat(file, offset, addr, count) kernel_read(file, offset, addr, count)
....@@ -957,12 +963,5 @@
957963 #define PCI_DMA_FROMDEVICE 2
958964 #endif
959965 #endif
960
-
961
-#ifdef ANDROID_BKPORT
962
-#if (ANDROID_VERSION >= 13) && (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 41))
963
-#define ANDROID13_KERNEL515_BKPORT
964
-#define CFG80211_BKPORT_MLO
965
-#endif /* ANDROID_VERSION >= 13 && KERNEL >= 5.15.41 */
966
-#endif /* ANDROID_BKPORT */
967966
968967 #endif /* _linuxver_h_ */