Add ecall config data_valid
Change-Id: I6efedbdcc3933b50ce69040326dc0b7447ddc3f2
diff --git a/mbtk/mbtk_rild_v2/src/ril_ecall.c b/mbtk/mbtk_rild_v2/src/ril_ecall.c
index c86f922..4de85b4 100755
--- a/mbtk/mbtk_rild_v2/src/ril_ecall.c
+++ b/mbtk/mbtk_rild_v2/src/ril_ecall.c
@@ -473,6 +473,7 @@
{
goto exit;
}
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_T3] = (uint8)1;
}
if(type & MBTK_ECALL_CFG_T5) {
@@ -481,6 +482,7 @@
{
goto exit;
}
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_T5] = (uint8)1;
}
if(type & MBTK_ECALL_CFG_T6) {
@@ -489,6 +491,7 @@
{
goto exit;
}
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_T6] = (uint8)1;
}
if(type & MBTK_ECALL_CFG_T7) {
@@ -497,6 +500,7 @@
{
goto exit;
}
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_T7] = (uint8)1;
}
if(type & MBTK_ECALL_CFG_TH) {
@@ -505,6 +509,7 @@
{
goto exit;
}
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_TH] = (uint8)1;
}
if(type & (MBTK_ECALL_CFG_TIMER_CALLBACK | MBTK_ECALL_CFG_TIMER_CLEARDOWN | MBTK_ECALL_CFG_TIMER_DEREG
@@ -540,6 +545,7 @@
if((tmp_ptr = strstr(line, "callback timer: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_CALLBACK] = (uint32)atoi(tmp_ptr + 16); // s
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_CALLBACK] *= 1000; // s -> ms
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_TIMER_CALLBACK] = (uint8)1;
}
}
@@ -548,6 +554,7 @@
if((tmp_ptr = strstr(line, "cleardown timer: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_CLEARDOWN] = (uint32)atoi(tmp_ptr + 17); // s
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_CLEARDOWN] *= 1000; // s -> ms
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_TIMER_CLEARDOWN] = (uint8)1;
}
}
@@ -556,6 +563,7 @@
if((tmp_ptr = strstr(line, "deregister timer: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_DEREG] = (uint32)atoi(tmp_ptr + 18); // s
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_DEREG] *= 1000; // s -> ms
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_TIMER_DEREG] = (uint8)1;
}
}
@@ -564,6 +572,7 @@
if((tmp_ptr = strstr(line, "dial setup timer: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_DIAL] = (uint32)atoi(tmp_ptr + 18); // s
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_DIAL] *= 1000; // s -> ms
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_TIMER_DIAL] = (uint8)1;
}
}
@@ -572,6 +581,7 @@
if((tmp_ptr = strstr(line, "redial wait timer: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_REDIAL] = (uint32)atoi(tmp_ptr + 19); // s
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_REDIAL] *= 1000; // s -> ms
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_TIMER_REDIAL] = (uint8)1;
}
}
@@ -580,6 +590,7 @@
if((tmp_ptr = strstr(line, "SMS resend timer: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_SMS] = (uint32)atoi(tmp_ptr + 18);
cfg->data[MBTK_ECALL_CFG_ITEM_TIMER_SMS] *= 1000; // s -> ms
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_TIMER_SMS] = (uint8)1;
}
}
@@ -587,6 +598,7 @@
{
if((tmp_ptr = strstr(line, "redial attempts count: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_REDIALCNT] = (uint32)atoi(tmp_ptr + 23);
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_REDIALCNT] = (uint8)1;
}
}
@@ -594,6 +606,7 @@
{
if((tmp_ptr = strstr(line, "smsprocess: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_SMSPROCESS] = (uint32)atoi(tmp_ptr + 12);
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_SMSPROCESS] = (uint8)1;
}
}
@@ -601,6 +614,7 @@
{
if((tmp_ptr = strstr(line, "sms msd send count: ")) != NULL) {
cfg->data[MBTK_ECALL_CFG_ITEM_SMSMSDCNT] = (uint32)atoi(tmp_ptr + 20);
+ cfg->data_valid[MBTK_ECALL_CFG_ITEM_SMSMSDCNT] = (uint8)1;
}
}
}