From 8e700a6ee2635a16d77fb3d57b2afd602f5b84df Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 24 Feb 2015 09:42:06 -0600 Subject: [PATCH] rtl8188eu: Fix build on kernel version 4.0+ Signed-off-by: Larry Finger --- os_dep/rtw_android.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/os_dep/rtw_android.c b/os_dep/rtw_android.c index 4350a10..00eb224 100755 --- a/os_dep/rtw_android.c +++ b/os_dep/rtw_android.c @@ -236,7 +236,13 @@ int rtw_android_cmdstr_to_num(char *cmdstr) { int cmd_num; for(cmd_num=0 ; cmd_num= 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;