[BugFix][T106][bug-view-74][WIFI] If the customer switches the WIFI repeatedly, the WiFi will be stuck, and the AT can not be used

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

Change-Id: I806e91fb201264fe3965256f03a3ba2d5b4490d1
(cherry picked from commit f3a0aab999c64f5ac319c63b9ce5d0971e409a21)
diff --git a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/libsctel/wifi/sc_wifi.c b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/libsctel/wifi/sc_wifi.c
index 190c03e..4581650 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/libsctel/wifi/sc_wifi.c
+++ b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/sdk/libsctel/wifi/sc_wifi.c
@@ -612,6 +612,9 @@
 	}

 

 	sc_ipc_terminate_loop();

+	//zw.wang If the customer switches the WIFI repeatedly, the WiFi will be stuck, and the AT can not be used on 20240821 on start

+	scwifi_ctx.have_init = 0;

+	//zw.wang If the customer switches the WIFI repeatedly, the WiFi will be stuck, and the AT can not be used on 20240821 on end

 	SCLOGI("wifi uninit suc!\n");

 	return 0;

 }