Skip to content

Commit 21bd79f

Browse files
committed
Wi-Fi: Handle disconnect in middle of DHCP operation
Restore power mode and BT co-ex settings when disconnect happens in middle of DHCP operation. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
1 parent 1204550 commit 21bd79f

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)