summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Wang <weiwa@google.com>2014-03-21 00:51:14 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-21 00:51:14 +0000
commite781efd651cea0fecf3a155a61cca3eed8e9766c (patch)
tree23389ab1ea297c81a187435d5f68d5975bf4f5ac
parentd5f3183eed14e7e153f185e8303afa1ab2c7415e (diff)
parentf479d15814f58ed820829fef0bfadf73cb2b88aa (diff)
downloadframeworks_base-e781efd651cea0fecf3a155a61cca3eed8e9766c.zip
frameworks_base-e781efd651cea0fecf3a155a61cca3eed8e9766c.tar.gz
frameworks_base-e781efd651cea0fecf3a155a61cca3eed8e9766c.tar.bz2
am f479d158: am bf056846: am 058061da: Merge "Fix stopBatchedScan not working for wifi" into klp-dev
* commit 'f479d15814f58ed820829fef0bfadf73cb2b88aa': Fix stopBatchedScan not working for wifi
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java
index 67307d5..0fffd37 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -3096,7 +3096,11 @@ public class WifiStateMachine extends StateMachine {
case CMD_SET_BATCHED_SCAN:
if (recordBatchedScanSettings(message.arg1, message.arg2,
(Bundle)message.obj)) {
- startBatchedScan();
+ if (mBatchedScanSettings != null) {
+ startBatchedScan();
+ } else {
+ stopBatchedScan();
+ }
}
break;
case CMD_SET_COUNTRY_CODE: