mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
Platform:ADPES2,Chip Info:APQ8064 Automotive
Changes to include "auto" option as well for ro.baseband property. submitting on behalf of Madhanraj Chelladurai Change-Id: I96abaea799df34d375a6a5db7341c17b99c94675
This commit is contained in:
parent
8b8602393c
commit
932151ebaa
1 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@
|
|||
#define STR_SURF "Surf"
|
||||
#define STR_MTP "MTP"
|
||||
#define STR_APQ "apq"
|
||||
#define STR_AUTO "auto"
|
||||
#define IS_STR_END(c) ((c) == '\0' || (c) == '\n' || (c) == '\r')
|
||||
#define LENGTH(s) (sizeof(s) - 1)
|
||||
#define GPS_CHECK_NO_ERROR 0
|
||||
|
@ -204,7 +205,8 @@ unsigned int loc_get_target(void)
|
|||
read_a_line(id_dep, rd_id, LINE_LEN);
|
||||
}
|
||||
|
||||
if( !memcmp(baseband, STR_APQ, LENGTH(STR_APQ)) ){
|
||||
if(( !memcmp(baseband, STR_APQ, LENGTH(STR_APQ)) ) ||
|
||||
(!memcmp(baseband, STR_AUTO, LENGTH(STR_AUTO))) ) {
|
||||
if( !memcmp(rd_id, MPQ8064_ID_1, LENGTH(MPQ8064_ID_1))
|
||||
&& IS_STR_END(rd_id[LENGTH(MPQ8064_ID_1)]) )
|
||||
gTarget = TARGET_MPQ;
|
||||
|
|
Loading…
Reference in a new issue