[datacall]Bug 85777 qser_apn_del 2

Change-Id: Ifb358ce8f8de599cae3a54d478d315e2fa7c64db
diff --git a/mbtk/mbtk_rild/src/mbtk_info_server.c b/mbtk/mbtk_rild/src/mbtk_info_server.c
old mode 100755
new mode 100644
index 5a2e721..de7721c
--- a/mbtk/mbtk_rild/src/mbtk_info_server.c
+++ b/mbtk/mbtk_rild/src/mbtk_info_server.c
@@ -3419,11 +3419,11 @@
     return err;
 }
 
-static int req_apn_del(char *data, int *cme_err)
+static int req_apn_del(int data, int *cme_err)
 {
     ATResponse *response = NULL;
     char cmd[64]={0};
-    sprintf(cmd, "AT+CGDCONT=%s", data);
+    sprintf(cmd, "AT+CGDCONT=%d", data);
     int err = at_send_command(cmd, &response);
     if (err < 0 || response->success == 0){
         if(cme_err) {
@@ -4989,9 +4989,7 @@
                 }
                 else     
                 {
-                    char profile[2];
-                    memset(profile, 0, 2);
-                    memcpy(profile, pack->data, pack->data_len);
+                    int profile = pack->data[0];
                     if(req_apn_del(profile, &cme_err) || cme_err != MBTK_INFO_ERR_CME_NON)
                     {
                         if(cme_err != MBTK_INFO_ERR_CME_NON) {