[Feature][ZXW-300]Optimize the time of setup_data_call
Only Configure: No
Affected branch: master
Affected module: data
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I08dc4bd33fe70e588175f0615504bc1e1f78d8a5
diff --git a/ap/app/zte_comm/zte_mainctrl/net_xfrm.c b/ap/app/zte_comm/zte_mainctrl/net_xfrm.c
index 0f22c1d..25a4055 100755
--- a/ap/app/zte_comm/zte_mainctrl/net_xfrm.c
+++ b/ap/app/zte_comm/zte_mainctrl/net_xfrm.c
@@ -1802,8 +1802,11 @@
/* init firewall and nat*/
//system_cmd_ex("nat.sh");
//zte_router_MTU_set();
+ //xf.li@20240606 delete for ZXW-300 start
+ #if 0
system_cmd_ex("firewall_init.sh");
-
+ #endif
+ //xf.li@20240606 delete for ZXW-300 end
/* read wan if name */
memset(defwan_rel, 0, sizeof(defwan_rel));
sc_cfg_get("default_wan_rel", defwan_rel, sizeof(defwan_rel));
@@ -1812,13 +1815,16 @@
memset(defwan6_rel, 0, sizeof(defwan6_rel));
sc_cfg_get("default_wan6_rel", defwan6_rel, sizeof(defwan6_rel));
+ //xf.li@20240606 delete for ZXW-300 start
+ #if 0
zte_iptables_all_filter_run();
zte_iptables_all_nat_run();
#if (MODEM_TYPE == vehicle_dc)
zte_firewall_init();
#endif
-
+ #endif
+//xf.li@20240606 delete for ZXW-300 end
slog(NET_PRINT, SLOG_NORMAL, "router_init end \n");
}
diff --git a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index 991c689..a24b64c 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -1078,7 +1078,9 @@
strncpy(defwan6_if_old, defwan_real, strlen(defwan_real));
}
}
- zte_unpn_set();
+ //xf.li@20240606 delete for ZXW-300 start
+ //zte_unpn_set();
+ //xf.li@20240606 delete for ZXW-300 end
if(atoi(xlat_enable) && actinfo->act_info.ip46flag == V6_VALID){
snprintf(buffer, sizeof(buffer),"ip route add default dev v4-%s", defwan_real);
system_cmd_ex(buffer);