Fixed invalid fix for bug #30038

This commit is contained in:
goldsimon 2010-06-14 19:18:11 +00:00
parent 505dd10d3c
commit 4b0be4a477

View File

@ -754,9 +754,6 @@ dhcp_network_changed(struct netif *netif)
case DHCP_REBOOTING:
netif_set_down(netif);
dhcp->tries = 0;
#if LWIP_DHCP_AUTOIP_COOP
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
#endif /* LWIP_DHCP_AUTOIP_COOP */
dhcp_reboot(netif);
break;
case DHCP_OFF:
@ -764,6 +761,9 @@ dhcp_network_changed(struct netif *netif)
break;
default:
dhcp->tries = 0;
#if LWIP_DHCP_AUTOIP_COOP
dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
#endif /* LWIP_DHCP_AUTOIP_COOP */
dhcp_discover(netif);
break;
}