Add 8122 gnss download(Not OK)

Change-Id: Ib276104c1f5f3c0e0284791602fe409a629bde8f
diff --git a/mbtk/test/others/mbtk_gnss_cli.c b/mbtk/test/others/mbtk_gnss_cli.c
index 91c4e7c..40d827c 100755
--- a/mbtk/test/others/mbtk_gnss_cli.c
+++ b/mbtk/test/others/mbtk_gnss_cli.c
@@ -34,7 +34,8 @@
 typedef enum {
     GNSS_CMD_INIT = 0,
     GNSS_CMD_DEINIT,
-    GNSS_CMD_SETTING
+    GNSS_CMD_SETTING,
+    GNSS_CMD_DL
 } gnss_cmd_enum;
 
 static void help()
@@ -42,6 +43,7 @@
     printf("gnss_cli gnss_init <0-15>\n");
     printf("gnss_cli gnss_deinit\n");
     printf("gnss_cli gnss_setting cmd\n");
+    printf("gnss_cli gnss_dl fw_name\n");
 }
 
 static int cmd_process(gnss_cmd_enum cmd, void *arg)
@@ -79,6 +81,8 @@
         sprintf(buff, "gnss_deinit");
     } else if(cmd == GNSS_CMD_SETTING) {
         sprintf(buff, "gnss_setting:%s", arg);
+    } else if(cmd == GNSS_CMD_DL) {
+        sprintf(buff, "gnss_dl:%s", arg);
     } else {
         printf("Unknown cmd.\n");
         return -1;
@@ -113,10 +117,20 @@
                     printf("gnss_setting response error.\n");
                     return -1;
                 }
+            } else if(cmd == GNSS_CMD_DL) {
+                if(memcmp(buff, "gnss_dl", 7) == 0) {
+                    return atoi(buff + 8);
+                } else {
+                    printf("gnss_dl response error.\n");
+                    return -1;
+                }
             } else {
                 printf("Unknown response.\n");
                 return -1;
             }
+        } else if(len == 0) {
+            printf("RSP is null.\n");
+            return -1;
         } else {
             printf("read = %d:errno = %d\n", len, errno);
         }
@@ -138,6 +152,8 @@
             ret = cmd_process(GNSS_CMD_INIT, argv[2]);
         } else if(strcmp(argv[1], "gnss_setting") == 0) {
             ret = cmd_process(GNSS_CMD_SETTING, argv[2]);
+        } else if(strcmp(argv[1], "gnss_dl") == 0) {
+            ret = cmd_process(GNSS_CMD_DL, argv[2]);
         } else {
             help();
             return -1;