1 Index: broadcom-wl-5.10.56.27.3/driver/wl_linux.c
2 ===================================================================
3 --- broadcom-wl-5.10.56.27.3.orig/driver/wl_linux.c
4 +++ broadcom-wl-5.10.56.27.3/driver/wl_linux.c
6 #error "No support for Kernel Rev <= 2.4.5, As the older kernel revs doesn't support Tasklets"
9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
10 +#define ioremap_nocache ioremap
13 typedef void wlc_info_t;
14 typedef void wlc_hw_info_t;
16 @@ -1915,7 +1919,11 @@ wl_ioctl(struct net_device *dev, struct
19 /* optimization for direct ioctl calls from kernel */
20 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
21 if (segment_eq(get_fs(), KERNEL_DS))
23 + if (uaccess_kernel())
28 Index: broadcom-wl-5.10.56.27.3/driver/linux_osl.c
29 ===================================================================
30 --- broadcom-wl-5.10.56.27.3.orig/driver/linux_osl.c
31 +++ broadcom-wl-5.10.56.27.3/driver/linux_osl.c
33 #define OS_HANDLE_MAGIC 0x1234abcd /* Magic # to recognise osh */
34 #define BCM_MEM_FILENAME_LEN 24 /* Mem. filename length */
36 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
37 +#define ioremap_nocache ioremap
40 typedef struct bcm_mem_link {
41 struct bcm_mem_link *prev;
42 struct bcm_mem_link *next;