File broadcom-wl.linux-5.1.patch of Package broadcom-wl
25
1
--- a/src/wl/sys/wl_cfg80211_hybrid.c
2
+++ b/src/wl/sys/wl_cfg80211_hybrid.c
3
4
#define EVENT_FLAGS(e) dtoh16((e)->flags)
5
#define EVENT_STATUS(e) dtoh32((e)->status)
6
7
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
8
+#define get_ds() (KERNEL_DS)
9
+#endif
10
#ifdef BCMDBG
11
u32 wl_dbg_level = WL_DBG_ERR | WL_DBG_INFO;
12
#else
13
--- a/src/wl/sys/wl_iw.c
14
+++ b/src/wl/sys/wl_iw.c
15
16
wl_iw_t *wliw;
17
} priv_link_t;
18
19
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
20
+#define get_ds() (KERNEL_DS)
21
+#endif
22
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24))
23
#define WL_DEV_LINK(dev) (priv_link_t*)(dev->priv)
24
#else
25