From 40048f0f25a903ad8433762a56387edd8c528e19 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 2 Sep 2024 13:25:53 +1000 Subject: [PATCH] ports: Fix lwIP config setting to disable DHCP ARP check. lwIP was recently updated in a89ac9e24a566e45bd3ffa7ef9e61e1d994616ea to STABLE-2_2_0_RELEASE, and this introduced a change in the configuration variable `DHCP_DOES_ARP_CHECK`, renaming it to `LWIP_DHCP_DOES_ACD_CHECK`. This commit fixes the ports lwIP settings to use the new configuration option. Without this option, connecting to a WiFi access-point takes about 12.5 seconds. With this option (ie disabling DHCP ARP checks) connecting takes about 4 seconds. Tested on an RPI_PICO_W and PYBD_SF2. Signed-off-by: Damien George --- ports/mimxrt/lwip_inc/lwipopts.h | 2 +- ports/renesas-ra/lwip_inc/lwipopts.h | 2 +- ports/rp2/lwip_inc/lwipopts.h | 2 +- ports/stm32/lwip_inc/lwipopts.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ports/mimxrt/lwip_inc/lwipopts.h b/ports/mimxrt/lwip_inc/lwipopts.h index 2401c05f9..411ca4b60 100644 --- a/ports/mimxrt/lwip_inc/lwipopts.h +++ b/ports/mimxrt/lwip_inc/lwipopts.h @@ -28,7 +28,7 @@ #define LWIP_IPV6 0 #define LWIP_DHCP 1 #define LWIP_DHCP_CHECK_LINK_UP 1 -#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up +#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up #define LWIP_DNS 1 #define LWIP_DNS_SUPPORT_MDNS_QUERIES 1 #define LWIP_MDNS_RESPONDER 1 diff --git a/ports/renesas-ra/lwip_inc/lwipopts.h b/ports/renesas-ra/lwip_inc/lwipopts.h index f7dc80cc3..74e39022a 100644 --- a/ports/renesas-ra/lwip_inc/lwipopts.h +++ b/ports/renesas-ra/lwip_inc/lwipopts.h @@ -26,7 +26,7 @@ #define LWIP_IPV6 0 #define LWIP_DHCP 1 #define LWIP_DHCP_CHECK_LINK_UP 1 -#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up +#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up #define LWIP_DNS 1 #define LWIP_DNS_SUPPORT_MDNS_QUERIES 1 #define LWIP_MDNS_RESPONDER 1 diff --git a/ports/rp2/lwip_inc/lwipopts.h b/ports/rp2/lwip_inc/lwipopts.h index f42bea528..15679e0cf 100644 --- a/ports/rp2/lwip_inc/lwipopts.h +++ b/ports/rp2/lwip_inc/lwipopts.h @@ -32,7 +32,7 @@ #define LWIP_ND6_QUEUEING 0 #define LWIP_DHCP 1 #define LWIP_DHCP_CHECK_LINK_UP 1 -#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up +#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up #define LWIP_DNS 1 #define LWIP_DNS_SUPPORT_MDNS_QUERIES 1 #define LWIP_MDNS_RESPONDER 1 diff --git a/ports/stm32/lwip_inc/lwipopts.h b/ports/stm32/lwip_inc/lwipopts.h index b779b558c..9e1aa8d0f 100644 --- a/ports/stm32/lwip_inc/lwipopts.h +++ b/ports/stm32/lwip_inc/lwipopts.h @@ -30,7 +30,7 @@ #define LWIP_IPV6 0 #define LWIP_DHCP 1 #define LWIP_DHCP_CHECK_LINK_UP 1 -#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up +#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up #define LWIP_DNS 1 #define LWIP_DNS_SUPPORT_MDNS_QUERIES 1 #define LWIP_MDNS_RESPONDER 1