diff options
author | Stan Chesnutt <chesnutt@google.com> | 2011-02-08 14:50:30 -0800 |
---|---|---|
committer | Stan Chesnutt <chesnutt@google.com> | 2011-02-08 14:50:30 -0800 |
commit | 320b56dcdd0c2affc7436f4748e8bc0a4419dbe4 (patch) | |
tree | 3350db75ea30f5272682aa288da7d5147b79f275 /core/jni/android_net_wifi_Wifi.cpp | |
parent | 5ed9a80571ede30d4cb7967227bff996c9cecb9e (diff) | |
download | frameworks_base-320b56dcdd0c2affc7436f4748e8bc0a4419dbe4.zip frameworks_base-320b56dcdd0c2affc7436f4748e8bc0a4419dbe4.tar.gz frameworks_base-320b56dcdd0c2affc7436f4748e8bc0a4419dbe4.tar.bz2 |
Parse the rssi result string in case-insensitive manner. This matches similar
code in wpa-supplicant, driver_wext.c
Change-Id: Ibeff41f9ef9168e47c338513b4c8c8781254e068
Diffstat (limited to 'core/jni/android_net_wifi_Wifi.cpp')
-rw-r--r-- | core/jni/android_net_wifi_Wifi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_net_wifi_Wifi.cpp b/core/jni/android_net_wifi_Wifi.cpp index 3b10299..58b5686 100644 --- a/core/jni/android_net_wifi_Wifi.cpp +++ b/core/jni/android_net_wifi_Wifi.cpp @@ -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); } } |