解决87157
Change-Id: Iaa3a183d52eed338de68fdfba92992723094c56f
diff --git a/mbtk/mbtk_rild/src/mbtk_info_server.c b/mbtk/mbtk_rild/src/mbtk_info_server.c
index a18d51b..2b564ea 100755
--- a/mbtk/mbtk_rild/src/mbtk_info_server.c
+++ b/mbtk/mbtk_rild/src/mbtk_info_server.c
@@ -318,6 +318,14 @@
return property_set(prop_name, prop_data);
}
+static int apn_prop_del(int cid)
+{
+ char prop_name[32] = {0};
+ snprintf(prop_name, sizeof(prop_name), "%s_%d", MBTK_APN_PROP, cid);
+
+ return property_set(prop_name, "");
+}
+
/*
AT*BAND=?
*BAND:(0-18),79,147,482,524503
@@ -5327,20 +5335,20 @@
if(pack->data_len == 0 || pack->data == NULL)
{
err = MBTK_INFO_ERR_UNSUPPORTED;
- LOG("Unsupported delete apn .");
+ LOGE("[%s] Unsupported delete apn.", __func__);
}
else
{
int profile = pack->data[0];
if(cid_active[profile] == 1)
{
- LOGD("cid pdp already open.");
+ LOGE("[%s] cid[%d] pdp already open.", __func__, profile);
err = MBTK_INFO_ERR_CID_EXIST;
break;
}
if(mbtk_qser_apn_del(profile) < 0)
{
- LOGD("del error.");
+ LOGE("[%s] mbtk_qser_apn_del fail.", __func__);
err = MBTK_INFO_ERR_REQ_PARAMETER;
}
else
@@ -5352,10 +5360,11 @@
} else {
err = MBTK_INFO_ERR_UNKNOWN;
}
- LOG("Delete apn fail.");
+ LOGE("[%s] Delete apn fail. [%d]", __func__, err);
}
else
{
+ apn_prop_del(profile);
pack_rsp_send(cli_info->fd, MBTK_INFO_ID_NET_APN_DEL_RSP, NULL, 0);
}
}