diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 6176c6e8c280ac..7bdd6ba7479158 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -706,9 +706,13 @@ def main() -> int: if sys.platform == "darwin": shell.run_cmd( "sed -i '' 's/#\\ CONFIG_DISABLE_IPV4\\ is\\ not\\ set/CONFIG_DISABLE_IPV4=y/g' sdkconfig ") + shell.run_cmd( + "sed -i '' 's/CONFIG_LWIP_IPV4=y/#\\ CONFIG_LWIP_IPV4\\ is\\ not\\ set/g' sdkconfig ") else: shell.run_cmd( "sed -i 's/#\\ CONFIG_DISABLE_IPV4\\ is\\ not\\ set/CONFIG_DISABLE_IPV4=y/g' sdkconfig ") + shell.run_cmd( + "sed -i 's/CONFIG_LWIP_IPV4=y/#\\ CONFIG_LWIP_IPV4\\ is\\ not\\ set/g' sdkconfig ") shell.run_cmd("idf.py build") shell.run_cmd("idf.py build flashing_script") diff --git a/examples/platform/esp32/Rpc.cpp b/examples/platform/esp32/Rpc.cpp index a3b61830b5a46a..7c00267be89780 100644 --- a/examples/platform/esp32/Rpc.cpp +++ b/examples/platform/esp32/Rpc.cpp @@ -197,6 +197,7 @@ class Esp32WiFi final : public WiFi return pw::OkStatus(); } +#if CHIP_DEVICE_CONFIG_ENABLE_IPV4 pw::Status GetIP4Address(const pw_protobuf_Empty & request, chip_rpc_IP4Address & response) override { esp_netif_ip_info_t ip_info; @@ -204,6 +205,7 @@ class Esp32WiFi final : public WiFi snprintf(response.address, sizeof(response.address), IPSTR, IP2STR(&ip_info.ip)); return pw::OkStatus(); } +#endif pw::Status GetIP6Address(const pw_protobuf_Empty & request, chip_rpc_IP6Address & response) override { diff --git a/scripts/build/builders/esp32.py b/scripts/build/builders/esp32.py index 3528a5873050e4..018e20170b194b 100644 --- a/scripts/build/builders/esp32.py +++ b/scripts/build/builders/esp32.py @@ -197,6 +197,8 @@ def generate(self): if not self.enable_ipv4: self._Execute( ['bash', '-c', 'echo -e "\\nCONFIG_DISABLE_IPV4=y\\n" >>%s' % shlex.quote(defaults_out)]) + self._Execute( + ['bash', '-c', 'echo -e "\\nCONFIG_LWIP_IPV4=n\\n" >>%s' % shlex.quote(defaults_out)]) if self.enable_insights_trace: insights_flag = 'y'