mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
RTL8812AU: add patch to build with kernel 3.18
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
477ba1d26e
commit
62a25586c7
@ -0,0 +1,16 @@
|
|||||||
|
diff -Naur RTL8812AU-b22cbdf/include/ioctl_cfg80211.h RTL8812AU-b22cbdf.patch/include/ioctl_cfg80211.h
|
||||||
|
--- RTL8812AU-b22cbdf/include/ioctl_cfg80211.h 2014-04-12 01:49:09.000000000 +0200
|
||||||
|
+++ RTL8812AU-b22cbdf.patch/include/ioctl_cfg80211.h 2015-01-11 14:02:03.978091783 +0100
|
||||||
|
@@ -109,9 +109,11 @@
|
||||||
|
#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->pnetdev, freq, sig_dbm, buf, len, gfp)
|
||||||
|
#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0))
|
||||||
|
#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, gfp)
|
||||||
|
-#else
|
||||||
|
+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0))
|
||||||
|
// 3.12 added a flags argument which is just set to zero
|
||||||
|
#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0, gfp)
|
||||||
|
+#else
|
||||||
|
+ #define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) && !defined(COMPAT_KERNEL_RELEASE)
|
Loading…
x
Reference in New Issue
Block a user