Skip to content

Commit 9781870

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Wi-Fi: Handle disconnect in middle of DHCP operation"
2 parents 1204550 + 21bd79f commit 9781870

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wifi/java/android/net/wifi/WifiStateMachine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,10 @@ private SupplicantState handleSupplicantStateChange(Message message) {
16211621
private void handleNetworkDisconnect() {
16221622
if (DBG) log("Stopping DHCP and clearing IP");
16231623

1624+
/* In case we were in middle of DHCP operation
1625+
restore back powermode */
1626+
handlePostDhcpSetup();
1627+
16241628
/*
16251629
* stop DHCP
16261630
*/

0 commit comments

Comments
 (0)