[datacall]Bug 85777 qser_apn_del
Change-Id: I3013d46fdf8ee42bb320f267667f90f4184ae840
diff --git a/mbtk/libmbtk_ril/mbtk_info.h b/mbtk/libmbtk_ril/mbtk_info.h
old mode 100755
new mode 100644
index a8a2b91..9bbf844
--- a/mbtk/libmbtk_ril/mbtk_info.h
+++ b/mbtk/libmbtk_ril/mbtk_info.h
@@ -125,6 +125,9 @@
// mbtk_apn_info_t
MBTK_INFO_ID_NET_APN_REQ,
MBTK_INFO_ID_NET_APN_RSP,
+ // mbtk_apn_del
+ MBTK_INFO_ID_NET_APN_DEL_REQ,
+ MBTK_INFO_ID_NET_APN_DEL_RSP,
// mbtk_cell_info_t[]
MBTK_INFO_ID_NET_CELL_REQ,
MBTK_INFO_ID_NET_CELL_RSP,
diff --git a/mbtk/libmbtk_ril/mbtk_info_api.c b/mbtk/libmbtk_ril/mbtk_info_api.c
old mode 100755
new mode 100644
index d471c3b..ac21898
--- a/mbtk/libmbtk_ril/mbtk_info_api.c
+++ b/mbtk/libmbtk_ril/mbtk_info_api.c
@@ -1213,6 +1213,29 @@
return info_item_process(handle, MBTK_INFO_ID_NET_APN_REQ, data, ptr - data, NULL) ? handle->info_err : 0;
}
+int mbtk_apn_del(mbtk_info_handle_t* handle, unsigned char profile_idx)
+{
+ char profile[2];
+ memset(profile, 0, 2);
+ sprintf(profile, "%s", profile_idx);
+ if(handle == NULL)
+ {
+ LOGE("ARG error.");
+ return -1;
+ }
+
+ if(info_item_process(handle, MBTK_INFO_ID_NET_APN_DEL_REQ, profile, strlen(profile), NULL) >= 0)
+ {
+ LOG("profile_idx Number : %s", profile);
+ return 0;
+ }
+ else
+ {
+ return handle->info_err;
+ }
+
+}
+
/*
* Start data call.
*/