mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 13:01:10 +02:00
ports: Fix lwIP config setting to disable DHCP ARP check.
lwIP was recently updated in a89ac9e24a
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>
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user