Merge "Parse the rssi result string in case-insensitive manner. This matches similar code in wpa-supplicant, driver_wext.c"

This commit is contained in:
Dmitry Shmidt
2011-02-08 14:58:18 -08:00
committed by Android (Google) Code Review

View File

@@ -411,7 +411,7 @@ static jint android_net_wifi_getRssiHelper(const char *cmd)
char* lastSpace = strrchr(reply, ' ');
// lastSpace should be preceded by "rssi" and followed by the value
if (lastSpace && !strncmp(lastSpace - 4, "rssi", 4)) {
if (lastSpace && !strncasecmp(lastSpace - 4, "rssi", 4)) {
sscanf(lastSpace + 1, "%d", &rssi);
}
}