mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: gps: Set correct target for msm baseband
Change-Id: Ie52feed022db511abb6813f20418d23c0f5b3ba9
This commit is contained in:
parent
295c9e5a07
commit
e029a78af7
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue