diff options
| author | Damien George <damien@micropython.org> | 2024-09-02 13:25:53 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-09-26 23:00:42 +1000 |
| commit | 40048f0f25a903ad8433762a56387edd8c528e19 (patch) | |
| tree | ddb599ea48d1889bdbe86b3bf69d0bb292464f49 | |
| parent | 36fe9bbf0001fda887fdc85b6eac8e926d2cf3f0 (diff) | |
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 <damien@micropython.org>
| -rw-r--r-- | ports/mimxrt/lwip_inc/lwipopts.h | 2 | ||||
| -rw-r--r-- | ports/renesas-ra/lwip_inc/lwipopts.h | 2 | ||||
| -rw-r--r-- | ports/rp2/lwip_inc/lwipopts.h | 2 | ||||
| -rw-r--r-- | 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 |
