[Feature][T108][WIFI][task-view-1467]The NAN pin is raised by default, and the input for wifi and gnss Settings is low
Only Configure: No
Affected branch: GSW_V1453
Affected module: WIFI
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no
Change-Id: I6b1a66d220b7d11333100f4f76307d96c9db4363
diff --git a/mbtk/libgsw_lib/gsw_wifi_interface_sdk.c b/mbtk/libgsw_lib/gsw_wifi_interface_sdk.c
index 8a7d754..89a593e 100644
--- a/mbtk/libgsw_lib/gsw_wifi_interface_sdk.c
+++ b/mbtk/libgsw_lib/gsw_wifi_interface_sdk.c
@@ -2101,6 +2101,11 @@
{
if (handle())
return GSW_HAL_NORMAL_FAIL;
+ if (execute_command("echo 1 > /sys/devices/platform/mbtk-sdh/pwr_ctrl") != 0)
+ {
+ return GSW_HAL_NORMAL_FAIL;
+ }
+ sleep(1);
if (!is_module_loaded("cfg80211"))
{
if (execute_command("modprobe cfg80211") != 0)
@@ -2188,6 +2193,10 @@
{
LOGI("cfg80211 not insmod.\n");
}
-
+ if (execute_command("echo 0 > /sys/devices/platform/mbtk-sdh/pwr_ctrl") != 0)
+ {
+ return GSW_HAL_NORMAL_FAIL;
+ }
+ sleep(1);
return GSW_HAL_SUCCESS;
}
\ No newline at end of file