Fix ecall cfg set fail.
Change-Id: I86e40f88f8199a66849911b1ce82fd11bd2c13cb
diff --git a/mbtk/mbtk_rild_v2/src/ril_ecall.c b/mbtk/mbtk_rild_v2/src/ril_ecall.c
index a3ff510..ae8dcd7 100755
--- a/mbtk/mbtk_rild_v2/src/ril_ecall.c
+++ b/mbtk/mbtk_rild_v2/src/ril_ecall.c
@@ -721,49 +721,50 @@
goto exit;
}
}
- if(cfg_info->type & MBTK_ECALL_CFG_ITEM_TIMER_DEREG)
+
+ if(cfg_info->type & MBTK_ECALL_CFG_TIMER_DEREG)
{
if(cfg_ecalltimer_set(port, "dereg", cfg_info->data[MBTK_ECALL_CFG_ITEM_TIMER_DEREG] / 1000, cme_err)
|| *cme_err != MBTK_RIL_ERR_CME_NON) {
goto exit;
}
}
- if(cfg_info->type & MBTK_ECALL_CFG_ITEM_TIMER_DIAL)
+ if(cfg_info->type & MBTK_ECALL_CFG_TIMER_DIAL)
{
if(cfg_ecalltimer_set(port, "dial", cfg_info->data[MBTK_ECALL_CFG_ITEM_TIMER_DIAL] / 1000, cme_err)
|| *cme_err != MBTK_RIL_ERR_CME_NON) {
goto exit;
}
}
- if(cfg_info->type & MBTK_ECALL_CFG_ITEM_TIMER_REDIAL)
+ if(cfg_info->type & MBTK_ECALL_CFG_TIMER_REDIAL)
{
if(cfg_ecalltimer_set(port, "redialtmr", cfg_info->data[MBTK_ECALL_CFG_ITEM_TIMER_REDIAL] / 1000, cme_err)
|| *cme_err != MBTK_RIL_ERR_CME_NON) {
goto exit;
}
}
- if(cfg_info->type & MBTK_ECALL_CFG_ITEM_TIMER_SMS)
+ if(cfg_info->type & MBTK_ECALL_CFG_TIMER_SMS)
{
if(cfg_ecalltimer_set(port, "sms", cfg_info->data[MBTK_ECALL_CFG_ITEM_TIMER_SMS] / 1000, cme_err)
|| *cme_err != MBTK_RIL_ERR_CME_NON) {
goto exit;
}
}
- if(cfg_info->type & MBTK_ECALL_CFG_ITEM_REDIALCNT)
+ if(cfg_info->type & MBTK_ECALL_CFG_REDIALCNT)
{
if(cfg_ecalltimer_set(port, "redialcnt", cfg_info->data[MBTK_ECALL_CFG_ITEM_REDIALCNT], cme_err)
|| *cme_err != MBTK_RIL_ERR_CME_NON) {
goto exit;
}
}
- if(cfg_info->type & MBTK_ECALL_CFG_ITEM_SMSPROCESS)
+ if(cfg_info->type & MBTK_ECALL_CFG_SMSPROCESS)
{
if(cfg_ecalltimer_set(port, "smsprocess", cfg_info->data[MBTK_ECALL_CFG_ITEM_SMSPROCESS], cme_err)
|| *cme_err != MBTK_RIL_ERR_CME_NON) {
goto exit;
}
}
- if(cfg_info->type & MBTK_ECALL_CFG_ITEM_SMSMSDCNT)
+ if(cfg_info->type & MBTK_ECALL_CFG_SMSMSDCNT)
{
if(cfg_ecalltimer_set(port, "smsmsdcnt", cfg_info->data[MBTK_ECALL_CFG_ITEM_SMSMSDCNT], cme_err)
|| *cme_err != MBTK_RIL_ERR_CME_NON) {