|
@@ -2945,6 +2945,8 @@ int InitQca7000()
|
|
int result = PASS;
|
|
int result = PASS;
|
|
system("/sbin/rmmod qcaspi");
|
|
system("/sbin/rmmod qcaspi");
|
|
|
|
|
|
|
|
+ gpio_set_value(GPIO_OUT_RST_QCA, ON);
|
|
|
|
+ sleep(2);
|
|
if(isKernelSupportNAT() == YES)
|
|
if(isKernelSupportNAT() == YES)
|
|
system("/sbin/insmod /lib/qcaspi_nat.ko");
|
|
system("/sbin/insmod /lib/qcaspi_nat.ko");
|
|
else
|
|
else
|
|
@@ -2953,7 +2955,7 @@ int InitQca7000()
|
|
sleep(2);
|
|
sleep(2);
|
|
system("/sbin/ifconfig eth1 192.168.0.11 netmask 255.255.255.0 up");
|
|
system("/sbin/ifconfig eth1 192.168.0.11 netmask 255.255.255.0 up");
|
|
sleep(1);
|
|
sleep(1);
|
|
-
|
|
|
|
|
|
+ gpio_set_value(GPIO_OUT_RST_QCA, OFF);
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|