msm8974-common: gps: Set correct target for msm baseband
Change-Id: Ie52feed022db511abb6813f20418d23c0f5b3ba9
This commit is contained in:
parent
8441090408
commit
62261a55b5
@ -53,6 +53,7 @@
|
|||||||
#define STR_SURF "Surf"
|
#define STR_SURF "Surf"
|
||||||
#define STR_MTP "MTP"
|
#define STR_MTP "MTP"
|
||||||
#define STR_APQ "apq"
|
#define STR_APQ "apq"
|
||||||
|
#define STR_MSM "msm"
|
||||||
#define STR_AUTO "auto"
|
#define STR_AUTO "auto"
|
||||||
#define IS_STR_END(c) ((c) == '\0' || (c) == '\n' || (c) == '\r')
|
#define IS_STR_END(c) ((c) == '\0' || (c) == '\n' || (c) == '\r')
|
||||||
#define LENGTH(s) (sizeof(s) - 1)
|
#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))
|
(!memcmp(rd_id, MSM8930_ID_2, LENGTH(MSM8930_ID_2))
|
||||||
&& IS_STR_END(rd_id[LENGTH(MSM8930_ID_2)])) )
|
&& IS_STR_END(rd_id[LENGTH(MSM8930_ID_2)])) )
|
||||||
gTarget = TARGET_MSM_NO_SSC;
|
gTarget = TARGET_MSM_NO_SSC;
|
||||||
|
else if ( !memcmp(baseband, STR_MSM, LENGTH(STR_MSM)) )
|
||||||
|
gTarget = TARGET_DEFAULT;
|
||||||
else
|
else
|
||||||
gTarget = TARGET_UNKNOWN;
|
gTarget = TARGET_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user