Fix scan mode bug.
The incorrect paramter was being passed.
Change-Id: Icc119811d61ffa537b837a6712a85ea9dcefaa87
diff --git a/src/com/android/bluetooth/btservice/AdapterService.java b/src/com/android/bluetooth/btservice/AdapterService.java
index 9538ad4..8c1b98e 100755
--- a/src/com/android/bluetooth/btservice/AdapterService.java
+++ b/src/com/android/bluetooth/btservice/AdapterService.java
@@ -207,7 +207,7 @@
setDiscoverableTimeout(duration);
int newMode = convertScanModeToHal(mode);
- return mAdapterProperties.setScanMode(mode);
+ return mAdapterProperties.setScanMode(newMode);
}
public int getDiscoverableTimeout() {