Clean up scan handling

use regular scan API instead of obsolete active scan API

Bug: 8158647
Change-Id: I8f70e19219ad789b7501a40529bcd6b6524739e8
This commit is contained in:
Irfan Sheriff
2013-02-21 15:44:10 -08:00
parent dd395e210a
commit 13b3882049

View File

@@ -914,7 +914,7 @@ public class WifiSettings extends SettingsPreferenceFragment
@Override
public void handleMessage(Message message) {
if (mWifiManager.startScanActive()) {
if (mWifiManager.startScan()) {
mRetry = 0;
} else if (++mRetry >= 3) {
mRetry = 0;