[BugFix][API-1212]fix when run lynq_wifi_stop_ap/lynq_wifi_disable wifi service abnormal

Only Configure:NO

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: NO

Change-Id: Ia2fbe2d0c4b78b2858e3df7a4abefc7379598a05
diff --git a/src/lynq/lib/liblynq-wifi6/libwifi6.c b/src/lynq/lib/liblynq-wifi6/libwifi6.c
index 3c2ff97..2772668 100755
--- a/src/lynq/lib/liblynq-wifi6/libwifi6.c
+++ b/src/lynq/lib/liblynq-wifi6/libwifi6.c
@@ -513,7 +513,7 @@
             system("wl reinit");
             RLOGD("APTmpWatcherThreadProc ----- > do cmd reinit");
         }
-        if( g_ap_tmp_watcher_pid == 1 )
+        if( g_ap_tmp_watcher_stop_flag == 1 )
         {
            RLOGD("APTmpWatcherThreadProc ----- > ap closed or wifi disabled");
            return;