diff options
author | Wei Wang <weiwa@google.com> | 2015-06-05 15:37:51 -0700 |
---|---|---|
committer | Wei Wang <weiwa@google.com> | 2015-06-05 15:37:51 -0700 |
commit | 3e9a1775d67b7fe1ee7c6f07f586dde391785e7f (patch) | |
tree | 42d9e24b93d4b750f0ab3fe5b1c388686295bbbf /wifi | |
parent | c554b77b7392b97e0f455d8276b739e16147d6df (diff) | |
download | frameworks_base-3e9a1775d67b7fe1ee7c6f07f586dde391785e7f.zip frameworks_base-3e9a1775d67b7fe1ee7c6f07f586dde391785e7f.tar.gz frameworks_base-3e9a1775d67b7fe1ee7c6f07f586dde391785e7f.tar.bz2 |
Fail sanity check when BSSID is empty in RTT request
Bug:21636405
Change-Id: I33a8e7e42dd428c1ff598bef3aed44060c6dd396
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/RttManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/RttManager.java b/wifi/java/android/net/wifi/RttManager.java index 7ced126..503e4a2 100644 --- a/wifi/java/android/net/wifi/RttManager.java +++ b/wifi/java/android/net/wifi/RttManager.java @@ -829,7 +829,8 @@ public class RttManager { Log.e(TAG, "Request " + index + ": two side RTT is not supported"); return false; } else if(params.bssid == null || params.bssid.isEmpty()) { - Log.e(TAG,"No BSSID is input"); + Log.e(TAG,"No BSSID in params"); + return false; } else if ( params.numberBurst != 0 ) { Log.e(TAG, "Request " + index + ": Illegal number of burst: " + params.numberBurst); return false; |