Skip to content

Commit 40048f0

Browse files
committed
ports: Fix lwIP config setting to disable DHCP ARP check.
lwIP was recently updated in a89ac9e 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 <[email protected]>
1 parent 36fe9bb commit 40048f0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ports/mimxrt/lwip_inc/lwipopts.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define LWIP_IPV6 0
2929
#define LWIP_DHCP 1
3030
#define LWIP_DHCP_CHECK_LINK_UP 1
31-
#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up
31+
#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up
3232
#define LWIP_DNS 1
3333
#define LWIP_DNS_SUPPORT_MDNS_QUERIES 1
3434
#define LWIP_MDNS_RESPONDER 1

ports/renesas-ra/lwip_inc/lwipopts.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define LWIP_IPV6 0
2727
#define LWIP_DHCP 1
2828
#define LWIP_DHCP_CHECK_LINK_UP 1
29-
#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up
29+
#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up
3030
#define LWIP_DNS 1
3131
#define LWIP_DNS_SUPPORT_MDNS_QUERIES 1
3232
#define LWIP_MDNS_RESPONDER 1

ports/rp2/lwip_inc/lwipopts.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define LWIP_ND6_QUEUEING 0
3333
#define LWIP_DHCP 1
3434
#define LWIP_DHCP_CHECK_LINK_UP 1
35-
#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up
35+
#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up
3636
#define LWIP_DNS 1
3737
#define LWIP_DNS_SUPPORT_MDNS_QUERIES 1
3838
#define LWIP_MDNS_RESPONDER 1

ports/stm32/lwip_inc/lwipopts.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define LWIP_IPV6 0
3131
#define LWIP_DHCP 1
3232
#define LWIP_DHCP_CHECK_LINK_UP 1
33-
#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up
33+
#define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up
3434
#define LWIP_DNS 1
3535
#define LWIP_DNS_SUPPORT_MDNS_QUERIES 1
3636
#define LWIP_MDNS_RESPONDER 1

0 commit comments

Comments
 (0)