Change mbtk_ril : 1
Change-Id: I28648cc4a7afd7cc9b2729a9d74a6182cb596edf
diff --git a/mbtk/libmbtk_ril/mbtk_info.c b/mbtk/libmbtk_ril/mbtk_info.c
index 5f8ec6a..b61a3b0 100755
--- a/mbtk/libmbtk_ril/mbtk_info.c
+++ b/mbtk/libmbtk_ril/mbtk_info.c
@@ -213,6 +213,9 @@
case MBTK_INFO_ID_DEV_VERSION_REQ:
case MBTK_INFO_ID_DEV_VERSION_RSP:
return "VERSION";
+ case MBTK_INFO_ID_DEV_MODEL_REQ:
+ case MBTK_INFO_ID_DEV_MODEL_RSP:
+ return "MODEL";
// <uint8> 0:Close 1:Open
case MBTK_INFO_ID_DEV_VOLTE_REQ:
case MBTK_INFO_ID_DEV_VOLTE_RSP:
@@ -221,10 +224,18 @@
case MBTK_INFO_ID_DEV_TEMP_REQ: // Temperature
case MBTK_INFO_ID_DEV_TEMP_RSP:
return "TEMPERATURE";
+ case MBTK_INFO_ID_DEV_CELL_TIME_REQ:
+ case MBTK_INFO_ID_DEV_CELL_TIME_RSP:
+ return "CELL_TIME";
case MBTK_INFO_ID_DEV_TIME_REQ: // Time
case MBTK_INFO_ID_DEV_TIME_RSP:
return "Time";
+ case MBTK_INFO_ID_DEV_MODEM_REQ:
+ case MBTK_INFO_ID_DEV_MODEM_RSP:
+ return "MODEM";
+
// Sim Information
+
// <uint8> 0:NOT_EXIST 1:READY ...
case MBTK_INFO_ID_SIM_STATE_REQ:
case MBTK_INFO_ID_SIM_STATE_RSP:
diff --git a/mbtk/libmbtk_ril/mbtk_info.h b/mbtk/libmbtk_ril/mbtk_info.h
index 573ba84..d58c498 100755
--- a/mbtk/libmbtk_ril/mbtk_info.h
+++ b/mbtk/libmbtk_ril/mbtk_info.h
@@ -54,8 +54,8 @@
MBTK_INFO_ID_DEV_TIME_REQ, // Time
MBTK_INFO_ID_DEV_TIME_RSP,
//<string> "23/03/20,01:58:00+32"
- MBTK_INFO_ID_NET_TIME_REQ, // Time
- MBTK_INFO_ID_NET_TIME_RSP,
+ MBTK_INFO_ID_DEV_CELL_TIME_REQ, // Time
+ MBTK_INFO_ID_DEV_CELL_TIME_RSP,
MBTK_INFO_ID_DEV_MODEM_REQ,
MBTK_INFO_ID_DEV_MODEM_RSP,
diff --git a/mbtk/libmbtk_ril/mbtk_info_api.c b/mbtk/libmbtk_ril/mbtk_info_api.c
index 0e4043b..b226408 100755
--- a/mbtk/libmbtk_ril/mbtk_info_api.c
+++ b/mbtk/libmbtk_ril/mbtk_info_api.c
@@ -1762,7 +1762,7 @@
return -1;
}
//printf("mbtk_net_time_get begin info_item_process\n");
- if(info_item_process(handle, MBTK_INFO_ID_NET_TIME_REQ, NULL, 0, buff) > 0) {
+ if(info_item_process(handle, MBTK_INFO_ID_DEV_CELL_TIME_REQ, NULL, 0, buff) > 0) {
memcpy(time_str,buff,strlen(buff));
uint8 *temp = strstr(time_str, ",");
diff --git a/mbtk/mbtk_rild/src/mbtk_info_server.c b/mbtk/mbtk_rild/src/mbtk_info_server.c
index 4207d6c..5010a98 100755
--- a/mbtk/mbtk_rild/src/mbtk_info_server.c
+++ b/mbtk/mbtk_rild/src/mbtk_info_server.c
@@ -4274,7 +4274,7 @@
}
break;
}
- case MBTK_INFO_ID_NET_TIME_REQ: // <string> YYYY-MM-DD-HH:MM:SS
+ case MBTK_INFO_ID_DEV_CELL_TIME_REQ: // <string> YYYY-MM-DD-HH:MM:SS
{
if(pack->data_len == 0 || pack->data == NULL) // Get Time
{
@@ -4292,7 +4292,7 @@
{
char time_ser[100]={0};
memcpy(time_ser,time,strlen(time));
- pack_rsp_send(cli_info->fd, MBTK_INFO_ID_NET_TIME_RSP, time_ser, strlen(time_ser));
+ pack_rsp_send(cli_info->fd, MBTK_INFO_ID_DEV_CELL_TIME_RSP, time_ser, strlen(time_ser));
}
}
else // Set Time