diff options
author | Harikrishnan Hariharan <hahariha@codeaurora.org> | 2018-02-22 11:31:38 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-02-25 23:28:54 -0800 |
commit | cd1e0726c8d5f37c3ddfbb5d608a036a4b203e8d (patch) | |
tree | c43ad0dc4c6e416b5f2aa1ad68032ef85abb2c50 /utils/loc_target.cpp | |
parent | 980d403c819d1053f8f19f00f077dcfbe9dd68a3 (diff) | |
download | gps-cd1e0726c8d5f37c3ddfbb5d608a036a4b203e8d.tar.gz |
Reset MSA/MSB capabilities for APQ targets.
- Capabilities MSA/MSB should be reset even if defined in
gps.conf for APQ/QSC targets. Since WWAN modem will not be
available, we need to trigger Standalone fixes only. If MSB
capability is set,then default position mode is MSB.
- Handle the new string "qcs" for baseband for Gen9 APQ targets.
- Make sure that ContextBase::readConfig avoid repeat initialize
for config reading.
Change-Id: Ic0a1e57dd76a88bf4d037cd374ceded84cc0f904
CRs-Fixed: 2193207
Diffstat (limited to 'utils/loc_target.cpp')
-rw-r--r-- | utils/loc_target.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/loc_target.cpp b/utils/loc_target.cpp index d31f887..dd6aa4f 100644 --- a/utils/loc_target.cpp +++ b/utils/loc_target.cpp @@ -54,6 +54,7 @@ #define STR_MTP "MTP" #define STR_APQ "apq" #define STR_SDC "sdc" // alternative string for APQ targets +#define STR_QCS "qcs" // string for Gen9 APQ targets #define STR_MSM "msm" #define STR_SDM "sdm" // alternative string for MSM targets #define STR_APQ_NO_WGR "baseband_apq_nowgr" @@ -175,7 +176,8 @@ unsigned int loc_get_target(void) } if( !memcmp(baseband, STR_APQ, LENGTH(STR_APQ)) || - !memcmp(baseband, STR_SDC, LENGTH(STR_SDC)) ) { + !memcmp(baseband, STR_SDC, LENGTH(STR_SDC)) || + !memcmp(baseband, STR_QCS, LENGTH(STR_QCS)) ) { if( !memcmp(rd_id, MPQ8064_ID_1, LENGTH(MPQ8064_ID_1)) && IS_STR_END(rd_id[LENGTH(MPQ8064_ID_1)]) ) |