Disable TCP on the MCU based platforms by default. (#33232)
Some of the MCU based platforms had TCP enabled on them without
having to use it.
Disabling the flag before landing the TCP PR #30339 to avoid
increase in code size.
We can assess the need to enable TCP on these platforms later.
diff --git a/config/ameba/args.gni b/config/ameba/args.gni
index a60eee6..3be47a8 100755
--- a/config/ameba/args.gni
+++ b/config/ameba/args.gni
@@ -28,7 +28,7 @@
chip_build_tests = false
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
chip_config_network_layer_ble = true
diff --git a/config/beken/args.gni b/config/beken/args.gni
index d9bbba6..018c3e9 100755
--- a/config/beken/args.gni
+++ b/config/beken/args.gni
@@ -26,7 +26,7 @@
chip_build_tests = false
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
chip_config_network_layer_ble = true
diff --git a/config/esp32/args.gni b/config/esp32/args.gni
index c8de67d..f818a37 100644
--- a/config/esp32/args.gni
+++ b/config/esp32/args.gni
@@ -26,7 +26,7 @@
#Enabling this causes some error
#chip_inet_config_enable_tun_endpoint = false
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
custom_toolchain = "//third_party/connectedhomeip/config/esp32/toolchain:esp32"
diff --git a/config/genio/args.gni b/config/genio/args.gni
index 50d0a51..c2012d6 100644
--- a/config/genio/args.gni
+++ b/config/genio/args.gni
@@ -24,7 +24,7 @@
chip_build_tests = true
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
custom_toolchain = "//third_party/connectedhomeip/config/genio/toolchain:genio"
diff --git a/config/mbed/chip-gn/args.gni b/config/mbed/chip-gn/args.gni
index 83753bc..804e9ef 100644
--- a/config/mbed/chip-gn/args.gni
+++ b/config/mbed/chip-gn/args.gni
@@ -21,7 +21,7 @@
chip_device_project_config_include = ""
chip_inet_config_enable_udp_endpoint = true
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
custom_toolchain = "${chip_root}/config/mbed/chip-gn/toolchain:mbed"
mbedtls_target = "${chip_root}/config/mbed/chip-gn/mbedtls:mbedtls"
diff --git a/examples/lighting-app/beken/args.gni b/examples/lighting-app/beken/args.gni
index 79a52c9..a999e3e 100755
--- a/examples/lighting-app/beken/args.gni
+++ b/examples/lighting-app/beken/args.gni
@@ -29,7 +29,7 @@
chip_build_tests = false
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
chip_config_network_layer_ble = true
diff --git a/src/platform/ASR/args.gni b/src/platform/ASR/args.gni
index 4301315..246fed3 100755
--- a/src/platform/ASR/args.gni
+++ b/src/platform/ASR/args.gni
@@ -25,5 +25,5 @@
chip_build_tests = false
chip_inet_config_enable_ipv4 = true
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
diff --git a/src/platform/Ameba/args.gni b/src/platform/Ameba/args.gni
index dd6b1bc..bcda381 100755
--- a/src/platform/Ameba/args.gni
+++ b/src/platform/Ameba/args.gni
@@ -21,5 +21,5 @@
chip_build_tests = false
chip_inet_config_enable_tun_endpoint = false
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
diff --git a/src/platform/Beken/args.gni b/src/platform/Beken/args.gni
index fbc11f6..6556eaf 100755
--- a/src/platform/Beken/args.gni
+++ b/src/platform/Beken/args.gni
@@ -21,5 +21,5 @@
chip_build_tests = false
chip_inet_config_enable_tun_endpoint = false
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true
diff --git a/src/platform/bouffalolab/BL602/args.gni b/src/platform/bouffalolab/BL602/args.gni
index fbabcea..7ceb33e 100644
--- a/src/platform/bouffalolab/BL602/args.gni
+++ b/src/platform/bouffalolab/BL602/args.gni
@@ -29,5 +29,5 @@
chip_build_tests = false
chip_inet_config_enable_dns_resolver = false
chip_inet_config_enable_tun_endpoint = false
-chip_inet_config_enable_tcp_endpoint = true
+chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_udp_endpoint = true