diff options
author | Pankaj Kanwar <pkanwar@google.com> | 2015-10-15 02:01:49 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-15 02:01:49 +0000 |
commit | d1a59e6237c00c2fd27f2de1b07954b49086304b (patch) | |
tree | 525f804ab28615842fd653a48e00f2f6c76c01a3 | |
parent | 6b6673a22801bcbb13c5e0beac7e3bfd3a390de6 (diff) | |
parent | a29ea4f648cc12ad81bc258ad11ae3d63cd4921f (diff) | |
download | android_frameworks_opt_net_wifi-d1a59e6237c00c2fd27f2de1b07954b49086304b.tar.gz android_frameworks_opt_net_wifi-d1a59e6237c00c2fd27f2de1b07954b49086304b.tar.bz2 android_frameworks_opt_net_wifi-d1a59e6237c00c2fd27f2de1b07954b49086304b.zip |
am a29ea4f6: am 12a1007d: Merge "Fix center frequency parsing bug." into mnc-dr-dev
* commit 'a29ea4f648cc12ad81bc258ad11ae3d63cd4921f':
Fix center frequency parsing bug.
-rw-r--r-- | service/java/com/android/server/wifi/WifiNative.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/service/java/com/android/server/wifi/WifiNative.java b/service/java/com/android/server/wifi/WifiNative.java index ca1ddc96c..6b9cfd6fb 100644 --- a/service/java/com/android/server/wifi/WifiNative.java +++ b/service/java/com/android/server/wifi/WifiNative.java @@ -1468,8 +1468,8 @@ public class WifiNative { int secondChanelOffset = 0; byte channelMode = 0; - byte centerFreqIndex1 = 0; - byte centerFreqIndex2 = 0; + int centerFreqIndex1 = 0; + int centerFreqIndex2 = 0; boolean is80211McRTTResponder = false; @@ -1492,8 +1492,8 @@ public class WifiNative { secondChanelOffset = bytes[inforStart + 1] & 0x3; } else if(type == EID_VHT_OPERATION) { channelMode = bytes[inforStart]; - centerFreqIndex1 = bytes[inforStart + 1]; - centerFreqIndex2 = bytes[inforStart + 2]; + centerFreqIndex1 = bytes[inforStart + 1] & 0xFF; + centerFreqIndex2 = bytes[inforStart + 2] & 0xFF; } else if (type == EID_EXTENDED_CAPS) { int tempIndex = RTT_RESP_ENABLE_BIT / 8; byte offset = RTT_RESP_ENABLE_BIT % 8; |