From 21bd79f51c032782e3d6ccd22c7e236200d28a94 Mon Sep 17 00:00:00 2001 From: Vishal Mahaveer Date: Fri, 27 Jan 2012 14:41:59 -0600 Subject: 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 --- wifi/java/android/net/wifi/WifiStateMachine.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wifi/java') diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java index 82abe3a..4539c6b 100644 --- a/wifi/java/android/net/wifi/WifiStateMachine.java +++ b/wifi/java/android/net/wifi/WifiStateMachine.java @@ -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 */ -- cgit v1.1