Add API:mbtk_get_modem_version from v2.

Change-Id: I5df09ddfaf0b7d55822e1b0b559b014a36bfdc48
diff --git a/mbtk/libmbtk_lib/ril/inc/mbtk_ril.h b/mbtk/libmbtk_lib/ril/inc/mbtk_ril.h
index d4664d9..3ad1dd4 100755
--- a/mbtk/libmbtk_lib/ril/inc/mbtk_ril.h
+++ b/mbtk/libmbtk_lib/ril/inc/mbtk_ril.h
@@ -57,7 +57,7 @@
     RIL_MSG_ID_DEV_MODEM,
     // <uint8>
     RIL_MSG_ID_DEV_POWERIND,
-
+    RIL_MSG_ID_DEV_MD_VERSION_REQ,
     RIL_MSG_ID_DEV_END,
 
     // Sim Information
diff --git a/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c b/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c
index 710173e..ddebb76 100755
--- a/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c
+++ b/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c
@@ -3285,6 +3285,27 @@
     return ril_req_process(port_info->port, RIL_MSG_ID_ECALL_DSP_GAIN, gain_info, sizeof(mbtk_ecall_gain_info_t), NULL, FALSE, 0);
 }
 
+int mbtk_get_modem_version(mbtk_ril_handle* handle, void *modem_version)
+{
+    if(!ril_cli.ril_ready)
+    {
+        return MBTK_RIL_ERR_NOT_INIT;
+    }
+    
+    if(handle == NULL || modem_version == NULL)
+    {
+        LOGE("ARG error.");
+        return -1;
+    }
+    ril_at_port_info_t *port_info = (ril_at_port_info_t*)handle;
+    if(!at_port_check(port_info->port)) {
+        return MBTK_RIL_ERR_PORT;
+    }
+    
+    return ril_req_process(port_info->port, RIL_MSG_ID_DEV_MD_VERSION_REQ, NULL, 0, modem_version,FALSE, 0);
+        
+}
+
 #if 0
 /*
 * Set wakeup state.
diff --git a/mbtk/libmbtk_lib/ril/v2/ril_utils.c b/mbtk/libmbtk_lib/ril/v2/ril_utils.c
index b3f3fdd..33b25a8 100755
--- a/mbtk/libmbtk_lib/ril/v2/ril_utils.c
+++ b/mbtk/libmbtk_lib/ril/v2/ril_utils.c
@@ -226,7 +226,8 @@
         case RIL_MSG_ID_DEV_POWERIND:
             return "POWERIND";
         // Sim Information
-
+        case RIL_MSG_ID_DEV_MD_VERSION_REQ:
+            return "MD_VERSION";
         // <uint8> 0:NOT_EXIST 1:READY ...
         case RIL_MSG_ID_SIM_STATE:
             return "SIM_STATE";