mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
Remove LWIP_DHCP_CHECK_LINK_UP define as it's useless
See bug #54574 Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
7749088a83
commit
93b2074f2b
@ -784,14 +784,11 @@ dhcp_start(struct netif *netif)
|
|||||||
}
|
}
|
||||||
dhcp->pcb_allocated = 1;
|
dhcp->pcb_allocated = 1;
|
||||||
|
|
||||||
#if LWIP_DHCP_CHECK_LINK_UP
|
|
||||||
if (!netif_is_link_up(netif)) {
|
if (!netif_is_link_up(netif)) {
|
||||||
/* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */
|
/* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */
|
||||||
dhcp_set_state(dhcp, DHCP_STATE_INIT);
|
dhcp_set_state(dhcp, DHCP_STATE_INIT);
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_DHCP_CHECK_LINK_UP */
|
|
||||||
|
|
||||||
|
|
||||||
/* (re)start the DHCP negotiation */
|
/* (re)start the DHCP negotiation */
|
||||||
result = dhcp_discover(netif);
|
result = dhcp_discover(netif);
|
||||||
|
@ -930,16 +930,6 @@
|
|||||||
#define DHCP_DOES_ARP_CHECK (LWIP_DHCP && LWIP_ARP)
|
#define DHCP_DOES_ARP_CHECK (LWIP_DHCP && LWIP_ARP)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* LWIP_DHCP_CHECK_LINK_UP==1: dhcp_start() only really starts if the netif has
|
|
||||||
* NETIF_FLAG_LINK_UP set in its flags. As this is only an optimization and
|
|
||||||
* netif drivers might not set this flag, the default is off. If enabled,
|
|
||||||
* netif_set_link_up() must be called to continue dhcp starting.
|
|
||||||
*/
|
|
||||||
#if !defined LWIP_DHCP_CHECK_LINK_UP
|
|
||||||
#define LWIP_DHCP_CHECK_LINK_UP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LWIP_DHCP_BOOTP_FILE==1: Store offered_si_addr and boot_file_name.
|
* LWIP_DHCP_BOOTP_FILE==1: Store offered_si_addr and boot_file_name.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user