Revert "[Bugfix][T106BUG-520]Fix the problem of not being able to ping ipv4 addresses"
This reverts commit 64568c0797f13236f347bd28976fc1455d74fb1f.
Reason for revert: <INSERT REASONING HERE>
Change-Id: I5a7b6fbd1b4ee71592332b07804c32b24900a997
diff --git a/ap/app/Script/scripts/wan_ipv4.sh b/ap/app/Script/scripts/wan_ipv4.sh
index 687e65a..0473738 100755
--- a/ap/app/Script/scripts/wan_ipv4.sh
+++ b/ap/app/Script/scripts/wan_ipv4.sh
@@ -236,9 +236,8 @@
#if [ "-$c_id" == "-0" -o "-$c_id" == "-$def_cid" ]; then
#echo 0 > /proc/sys/net/ipv4/ip_forward
#fi
- #xf.li@20240228 delete for T106BUG-520 start
- #ifconfig $wan_if 0.0.0.0 2>>$test_log
- #xf.li@20240228 delete for T106BUG-520 end
+
+ ifconfig $wan_if 0.0.0.0 2>>$test_log
if [ $? -ne 0 ];then
echo "Error: ifconfig $wan_if 0.0.0.0 failed." >> $test_log
fi
diff --git a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index 241ad2c..1715310 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -1138,10 +1138,8 @@
snprintf(cmd, sizeof(cmd),"ifconfig %s down", wan_name);
system_cmd_ex(cmd);
//ifconfig ip
- //xf.li@20240228 delete for T106BUG-520 start
- //snprintf(cmd, sizeof(cmd),"ifconfig %s 0.0.0.0 down", wan_name);
- //system_cmd_ex(cmd);
- //xf.li@20240228 delete for T106BUG-520 end
+ snprintf(cmd, sizeof(cmd),"ifconfig %s 0.0.0.0 down", wan_name);
+ system_cmd_ex(cmd);
sc_cfg_get("default_wan_name", default_wan_name, sizeof(default_wan_name));
sc_cfg_get("default_wan6_name", default_wan6_name, sizeof(default_wan6_name));