Fix ecall timer set/get
Change-Id: I5438c8d382411a18951c3575923479b1c3d28f39
diff --git a/mbtk/libmbtk_lib/ril/mbtk_info_api.c b/mbtk/libmbtk_lib/ril/mbtk_info_api.c
index b751aa6..b5fc96d 100755
--- a/mbtk/libmbtk_lib/ril/mbtk_info_api.c
+++ b/mbtk/libmbtk_lib/ril/mbtk_info_api.c
@@ -2764,7 +2764,7 @@
return -1;
}
- if(cfg == NULL || cfg->type >= MBTK_ECALL_CFG_ITEM_MAX)
+ if(cfg == NULL || cfg->type == 0)
{
LOGE("ARG error.");
return -1;
@@ -2788,14 +2788,14 @@
return -1;
}
- if(cfg == NULL || cfg->type >= MBTK_ECALL_CFG_ITEM_MAX)
+ if(cfg == NULL || cfg->type == 0)
{
LOGE("ARG error.");
return -1;
}
- mbtk_ecall_cfg_item_enum type = cfg->type;
+ uint32 type = cfg->type;
- if(info_item_process(handle, RIL_MSG_ID_ECALL_CFG_REQ, &type, 1, cfg) >= 0) {
+ if(info_item_process(handle, RIL_MSG_ID_ECALL_CFG_REQ, &type, sizeof(uint32), cfg) >= 0) {
return 0;
} else {
return handle->info_err;