Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6623ea1d authored by Prerepa Viswanadham's avatar Prerepa Viswanadham Committed by Android Git Automerger
Browse files

am 29961dcb: Bug 16630976 - Fix for LE Scan not working

* commit '29961dcb':
  Bug 16630976 - Fix for LE Scan not working
parents d4f27878 29961dcb
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -187,6 +187,7 @@ public class ScanManager {
                mScanNative.startBatchScan(client);
                mScanNative.startBatchScan(client);
            } else {
            } else {
                mRegularScanClients.add(client);
                mRegularScanClients.add(client);
                mScanNative.startRegularScan(client);
                mScanNative.configureRegularScanParams();
                mScanNative.configureRegularScanParams();
            }
            }
        }
        }
@@ -344,7 +345,9 @@ public class ScanManager {
                    // convert scanWindow and scanInterval from ms to LE scan units(0.625ms)
                    // convert scanWindow and scanInterval from ms to LE scan units(0.625ms)
                    scanWindow = (scanWindow * 1000)/625;
                    scanWindow = (scanWindow * 1000)/625;
                    scanInterval = (scanInterval * 1000)/625;
                    scanInterval = (scanInterval * 1000)/625;
                    gattClientScanNative(false);
                    gattSetScanParametersNative(scanInterval, scanWindow);
                    gattSetScanParametersNative(scanInterval, scanWindow);
                    gattClientScanNative(true);
                    lastConfiguredScanSetting = curScanSetting;
                    lastConfiguredScanSetting = curScanSetting;
                }
                }
            } else {
            } else {