[BugFix][API-1252]30 sec check fw reinit status&10 sec check reg status

Only Configure

Affected branch:MR3.0-xx && GSW3.0

Affected module:wifi

Is it addected on both ZXIC and MTK: only MTK

Self-test: Yes

Doc Update: YES

Change-Id: I3f33762b0186e343b179719837376de9a0fa88eb
diff --git a/lib/liblynq-wifi6/libwifi6.c b/lib/liblynq-wifi6/libwifi6.c
index feb33f9..39ab92d 100755
--- a/lib/liblynq-wifi6/libwifi6.c
+++ b/lib/liblynq-wifi6/libwifi6.c
@@ -734,17 +734,19 @@
                 RLOGD("APTmpWatcherThreadProc:check fw did reinit cmd,do down/up reset");
             }
         }
-        if ( i == delytime )
+        if ( (i % 10) == 0 )
         {
-            if( lynq_connected_ap_sta_status() == 0 )      //o --->no sta device connect this ap
+            if( lynq_connected_ap_sta_status() == 0 )      //0 --->no sta device connect this ap
             {
                 if(check_current_fw_status() == 1)        //1 --->current fw status not 0x0096
                 {
                     system("wl down");
                     system("wl up");
                 }
-
             }
+        }
+        if ( i == delytime )
+        {
             i = 0;
         }
         if( g_ap_tmp_watcher_stop_flag == 1 )       //quit proc
@@ -752,6 +754,7 @@
            RLOGD("APTmpWatcherThreadProc ----- > ap closed or wifi disabled");
            return;
         }
+
     }
 
 }
@@ -1379,6 +1382,7 @@
     g_ap_watcher_pid = 0;
     g_sta_watcher_pid = 0;
     g_sta_auto_watcher_pid = 0;
+    g_ap_tmp_watcher_pid = 0;
     g_lynq_wpa_ctrl[0] = NULL;
     g_lynq_wpa_ctrl[1] = NULL;
     system("systemctl stop wg870_drv_insmod.service");