blob: 3e8e0224e26bd56f043dfde8dfcfe65fb4df1676 [file] [log] [blame]
Jon West56e83b32021-04-14 12:38:06 -04001--- a/src/wl/sys/wl_cfg80211_hybrid.c
2+++ b/src/wl/sys/wl_cfg80211_hybrid.c
3@@ -43,6 +43,9 @@
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@@ -61,6 +61,9 @@ typedef struct priv_link {
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