mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 20:43:40 +00:00
rtl8188eu: Fix build on kernel version 4.0+
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
856f0de3ce
commit
8e700a6ee2
1 changed files with 7 additions and 1 deletions
|
@ -236,7 +236,13 @@ int rtw_android_cmdstr_to_num(char *cmdstr)
|
||||||
{
|
{
|
||||||
int cmd_num;
|
int cmd_num;
|
||||||
for(cmd_num=0 ; cmd_num<ANDROID_WIFI_CMD_MAX; cmd_num++)
|
for(cmd_num=0 ; cmd_num<ANDROID_WIFI_CMD_MAX; cmd_num++)
|
||||||
if(0 == strnicmp(cmdstr , android_wifi_cmd_str[cmd_num], strlen(android_wifi_cmd_str[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;
|
break;
|
||||||
|
|
||||||
return cmd_num;
|
return cmd_num;
|
||||||
|
|
Loading…
Reference in a new issue