[Bugfix][T106][task-view-131]Fix the issue of qser_gnss_download_tle having no return value

Only Configure: Yes
Affected branch: master
Affected module: gnss
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: yes
Doc Update: No

Change-Id: Iec88b4c0420ad868b600e1c80dc12f13a32de0e5
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/lynq_qser_gnss.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/lynq_qser_gnss.cpp
index 73f176e..776cace 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/lynq_qser_gnss.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/lynq_qser_gnss.cpp
@@ -398,7 +398,7 @@
 
 int qser_Gnss_download_tle()
 {
-    int ret;
+    int ret = -1;
     if(!inited)
     {
         ALOGE("has not been initiated\n");
@@ -408,12 +408,14 @@
         ret = hd_gnss_download_tle(login_information_t->host, login_information_t->id, login_information_t->password);
         if(ret < 0)
         {
+            ALOGE("download fail,ret = %d\n",ret);
             return -1;
         }
 #elif defined(HX_GNSS)
         ret = mopen_gnss_download_tle();
         if(ret < 0)
         {
+            ALOGE("download fail,ret = %d\n",ret);
             return -1;
         }
 #endif
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/mbtk_gnss.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/mbtk_gnss.cpp
index caf1a36..084dbae 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/mbtk_gnss.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-gnss/src/mbtk_gnss.cpp
@@ -1583,16 +1583,17 @@
 int hd_gnss_download_tle(char *host, char *id, char *password)
 {
     //id and pw are currently not being used for future access to self built servers
+    int ret;
     const char default_host[] = "http://uagnss.allystar.com/ephemeris/HD_GPS.hdb?compid=yikecs1&token=Z38w5urAuawubTxi";
     if(host == NULL)
     {
-        hd_gnss_http_requst(default_host);
+        ret = hd_gnss_http_requst(default_host);
     }
     else
     {
-        hd_gnss_http_requst(host);
+        ret = hd_gnss_http_requst(host);
     }
-    return 0;
+    return ret;
 }
 
 /**