mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
RTL8812AU: support kernel 4.11.9+
This commit is contained in:
parent
55b8a54128
commit
c04447263a
@ -0,0 +1,26 @@
|
||||
From 58fc45a4511b8b9d6b52813168e3eee657517b1f Mon Sep 17 00:00:00 2001
|
||||
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
||||
Date: Thu, 6 Jul 2017 21:07:42 +0100
|
||||
Subject: [PATCH] Fix build with kernel 4.11.9
|
||||
|
||||
---
|
||||
os_dep/linux/ioctl_cfg80211.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
|
||||
index 492bb1a..5dd7bc7 100644
|
||||
--- a/os_dep/linux/ioctl_cfg80211.c
|
||||
+++ b/os_dep/linux/ioctl_cfg80211.c
|
||||
@@ -3949,7 +3949,12 @@ static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, struct ne
|
||||
mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP;
|
||||
strncpy(mon_ndev->name, name, IFNAMSIZ);
|
||||
mon_ndev->name[IFNAMSIZ - 1] = 0;
|
||||
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(4,11,9))
|
||||
+ mon_ndev->needs_free_netdev = false;
|
||||
+ mon_ndev->priv_destructor = rtw_ndev_destructor;
|
||||
+#else
|
||||
mon_ndev->destructor = rtw_ndev_destructor;
|
||||
+#endif
|
||||
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
|
||||
mon_ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops;
|
Loading…
x
Reference in New Issue
Block a user