From 62261a55b51a86d4ea36c4039eb6a5d9f17ecc99 Mon Sep 17 00:00:00 2001 From: Arne Coucheron Date: Fri, 15 May 2020 06:17:28 +0200 Subject: [PATCH] msm8974-common: gps: Set correct target for msm baseband Change-Id: Ie52feed022db511abb6813f20418d23c0f5b3ba9 --- gps/utils/loc_target.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gps/utils/loc_target.cpp b/gps/utils/loc_target.cpp index faaedf6..d491a3e 100644 --- a/gps/utils/loc_target.cpp +++ b/gps/utils/loc_target.cpp @@ -53,6 +53,7 @@ #define STR_SURF "Surf" #define STR_MTP "MTP" #define STR_APQ "apq" +#define STR_MSM "msm" #define STR_AUTO "auto" #define IS_STR_END(c) ((c) == '\0' || (c) == '\n' || (c) == '\r') #define LENGTH(s) (sizeof(s) - 1) @@ -237,6 +238,8 @@ unsigned int loc_get_target(void) (!memcmp(rd_id, MSM8930_ID_2, LENGTH(MSM8930_ID_2)) && IS_STR_END(rd_id[LENGTH(MSM8930_ID_2)])) ) gTarget = TARGET_MSM_NO_SSC; + else if ( !memcmp(baseband, STR_MSM, LENGTH(STR_MSM)) ) + gTarget = TARGET_DEFAULT; else gTarget = TARGET_UNKNOWN; }