[Feature][T106][task-view-603]wifi power enables control pin to join nv
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: I4d56d72709181b897e284da94b497bf4623da274
diff --git a/ap/os/linux/linux-3.4.x/arch/arm/mach-zx297520v3/pwr_ctrl.c b/ap/os/linux/linux-3.4.x/arch/arm/mach-zx297520v3/pwr_ctrl.c
index a57002a..0a37eb4 100755
--- a/ap/os/linux/linux-3.4.x/arch/arm/mach-zx297520v3/pwr_ctrl.c
+++ b/ap/os/linux/linux-3.4.x/arch/arm/mach-zx297520v3/pwr_ctrl.c
@@ -262,6 +262,10 @@
void aic8800_wifi_enable(int bval)
{
+ // zw.wang The WiFi-related control pins gpio132 and gpio91 are still affected after the uboot removes mmc0 on 20241031 on start
+ if (get_wifi_enable() != 1)
+ return;
+ // zw.wang The WiFi-related control pins gpio132 and gpio91 are still affected after the uboot removes mmc0 on 20241031 on end
int ret = 0;
if(bval)
{
@@ -343,6 +347,10 @@
#if (defined CONFIG_AIC8800 || defined CONFIG_AIC8800D80L)
void aic8800_wifi_disable(int bval)
{
+ // zw.wang The WiFi-related control pins gpio132 and gpio91 are still affected after the uboot removes mmc0 on 20241031 on start
+ if (get_wifi_enable() != 1)
+ return;
+ // zw.wang The WiFi-related control pins gpio132 and gpio91 are still affected after the uboot removes mmc0 on 20241031 on end
int ret = 0;
if(bval)
{