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:
Linto Paul 2014-06-18 13:20:02 -07:00 committed by Rox-
parent 8b8602393c
commit 932151ebaa

View file

@ -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;