From c911560316711ed9d27fecb7564bb2800ee478a8 Mon Sep 17 00:00:00 2001 From: "Christopher R. Palmer" Date: Thu, 4 Jun 2015 15:45:55 -0400 Subject: [PATCH] msm8974-common: gps: Unlock the GPS [haggertk]: * During bring-up of O, GPS was exhibiting different behavior from N -- an appropriate number of satellites would immediately lock, but a fix would not resolve for 30-90 seconds. Digging up this change from the L-era allows GPS to resolve a fix in a nominal amount of time. Change-Id: If9fd67483fedee915d46f7b9d2a7e0851400de3c --- gps/loc_api/libloc_api_50001/loc_eng.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gps/loc_api/libloc_api_50001/loc_eng.cpp b/gps/loc_api/libloc_api_50001/loc_eng.cpp index e99f3ac..af97c51 100644 --- a/gps/loc_api/libloc_api_50001/loc_eng.cpp +++ b/gps/loc_api/libloc_api_50001/loc_eng.cpp @@ -1387,6 +1387,7 @@ struct LocEngInit : public LocMsg { } inline virtual void proc() const { loc_eng_reinit(*mLocEng); + mLocEng->adapter->setGpsLock(1); // set the capabilities mLocEng->adapter->sendMsg(new LocEngSetCapabilities(mLocEng)); }