mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
RTL8812AU: Fix build with kernel 4.11.9
This commit is contained in:
parent
095918292e
commit
be12fb0fb3
@ -0,0 +1,29 @@
|
||||
From 33c530916c48048683a9b81467866f18bb8d8678 Mon Sep 17 00:00:00 2001
|
||||
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
||||
Date: Tue, 20 Jun 2017 22:11:13 +0100
|
||||
Subject: [PATCH] rtl8812au: 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..63d438b 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;
|
||||
--
|
||||
2.7.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user