Merge "Fix stopBatchedScan not working for wifi" into klp-dev

This commit is contained in:
Wei Wang
2014-03-21 00:37:33 +00:00
committed by Android (Google) Code Review

View File

@ -3095,7 +3095,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: