diff options
author | Wei Wang <weiwa@google.com> | 2014-03-21 00:45:59 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-21 00:45:59 +0000 |
commit | 002516fb0b76bb6349cad97a8ab8153a7dd015e8 (patch) | |
tree | b4890926d7db6f2f61008178196d130c18ea8397 /wifi | |
parent | b035cfd3f46ce6650672c294fc39facc7c1d8642 (diff) | |
parent | bf0568468da9e02c177abaf9116f9995d53b59aa (diff) | |
download | frameworks_base-002516fb0b76bb6349cad97a8ab8153a7dd015e8.zip frameworks_base-002516fb0b76bb6349cad97a8ab8153a7dd015e8.tar.gz frameworks_base-002516fb0b76bb6349cad97a8ab8153a7dd015e8.tar.bz2 |
am bf056846: am 058061da: Merge "Fix stopBatchedScan not working for wifi" into klp-dev
* commit 'bf0568468da9e02c177abaf9116f9995d53b59aa':
Fix stopBatchedScan not working for wifi
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateMachine.java | 6 |
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: |