mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
RTL8188EU: add patch to support kernel 4.0
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7ab7564a81
commit
0949de22c6
@ -0,0 +1,25 @@
|
|||||||
|
diff -Naur RTL8188EU-fcc9034/os_dep/rtw_android.c RTL8188EU-fcc9034.patch/os_dep/rtw_android.c
|
||||||
|
--- RTL8188EU-fcc9034/os_dep/rtw_android.c 2014-03-25 15:05:52.000000000 +0100
|
||||||
|
+++ RTL8188EU-fcc9034.patch/os_dep/rtw_android.c 2015-04-04 20:44:25.386732963 +0200
|
||||||
|
@@ -20,6 +20,7 @@
|
||||||
|
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/netdevice.h>
|
||||||
|
+#include <linux/version.h>
|
||||||
|
|
||||||
|
#include <rtw_android.h>
|
||||||
|
#include <osdep_service.h>
|
||||||
|
@@ -80,8 +81,13 @@
|
||||||
|
{
|
||||||
|
int cmd_num;
|
||||||
|
for (cmd_num = 0; cmd_num < ANDROID_WIFI_CMD_MAX; cmd_num++)
|
||||||
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0))
|
||||||
|
+ if (!strncasecmp(cmdstr , android_wifi_cmd_str[cmd_num],
|
||||||
|
+ strlen(android_wifi_cmd_str[cmd_num])))
|
||||||
|
+#else
|
||||||
|
if (0 == strnicmp(cmdstr , android_wifi_cmd_str[cmd_num],
|
||||||
|
strlen(android_wifi_cmd_str[cmd_num])))
|
||||||
|
+#endif
|
||||||
|
break;
|
||||||
|
return cmd_num;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user