gnss: update lynq gnss code

Change-Id: Ie688c6add5499c6362e2a6b355e6e61a60a23bbb
diff --git a/mbtk/mbtk_gnssd/gnss_main.c b/mbtk/mbtk_gnssd/gnss_main.c
index 4d3a8dc..59589b5 100755
--- a/mbtk/mbtk_gnssd/gnss_main.c
+++ b/mbtk/mbtk_gnssd/gnss_main.c
@@ -53,7 +53,6 @@
 static uint32 nmea_buff_len = 0;
 static uint32 data_buff_len = 0;
 static gnss_ind_info_t ind_info[GNSS_CLI_IND_MAX];
-static gnss_ind_type_num_t ind_num;
 
 static bool nmea_found = FALSE;
 #ifdef GNSS_DEBUG
@@ -315,16 +314,8 @@
     if(gnss_pty_master_fd > 0) {
         ret = write(gnss_pty_master_fd, nmea, nmea_len);
     }
-
-    if(ind_num.nmea_cb_num > 0)
-    {
-        ind_nmea_print(nmea);
-    }
-
-    if(ind_num.locl_cb_num > 0)
-    {
-        ind_location_print(nmea);
-    }
+    ind_nmea_print(nmea);
+    ind_location_print(nmea);
 }
 
 static unsigned char nmea_checksum(const char *nmea)
@@ -929,28 +920,10 @@
             }
             ind_info[index].cli_fd = fd;
             ind_info[index].ind_flag = (uint32)ind_type;
-        } else { // Change flag
-            if(ind_info[index].ind_flag == MBTK_GNSS_IND_LOCATION)
-            {
-                ind_num.locl_cb_num--;
-            }
-            else if(ind_info[index].ind_flag == MBTK_GNSS_IND_NMEA)
-            {
-                ind_num.nmea_cb_num--;
-            }
-            
+        } else { // Change flag     
             ind_info[index].cli_fd = fd;
             ind_info[index].ind_flag = (uint32)ind_type;
         }
-        
-        if(ind_type == MBTK_GNSS_IND_LOCATION)
-        {
-            ind_num.locl_cb_num++;
-        }
-        else if(ind_type == MBTK_GNSS_IND_NMEA)
-        {
-            ind_num.nmea_cb_num++;
-        }
     } else { // Clear IND flag.
         while(index < GNSS_CLI_IND_MAX) {
             if(ind_info[index].cli_fd == fd)
@@ -960,17 +933,7 @@
 
         if(index == GNSS_CLI_IND_MAX) {
             return GNSS_ERR_ARG;
-        }
-
-        if(ind_info[index].ind_flag == MBTK_GNSS_IND_LOCATION)
-        {
-            ind_num.locl_cb_num--;
-        }
-        else if(ind_info[index].ind_flag == MBTK_GNSS_IND_NMEA)
-        {
-            ind_num.nmea_cb_num--;
-        }
-        
+        }    
         ind_info[index].cli_fd = 0;
         ind_info[index].ind_flag = 0;
     }
@@ -1048,7 +1011,6 @@
     }
 #endif
 
-    memset(&ind_num, 0x0, sizeof(gnss_ind_type_num_t));
     memset(&gnss_info, 0, sizeof(gnss_info_t));
     memcpy(gnss_info.dev_name, argv[2], strlen(argv[2]));
     gnss_info.state = GNSS_STATE_CLOSE;