Merge "Wi-Fi: Handle disconnect in middle of DHCP operation"

This commit is contained in:
Jean-Baptiste Queru
2012-01-27 13:36:48 -08:00
committed by android code review

View File

@@ -1621,6 +1621,10 @@ public class WifiStateMachine extends StateMachine {
private void handleNetworkDisconnect() {
if (DBG) log("Stopping DHCP and clearing IP");
/* In case we were in middle of DHCP operation
restore back powermode */
handlePostDhcpSetup();
/*
* stop DHCP
*/