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;