summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer <vishalm@ti.com>2012-01-27 14:41:59 -0600
committerVishal Mahaveer <vishalm@ti.com>2012-01-27 14:51:23 -0600
commit21bd79f51c032782e3d6ccd22c7e236200d28a94 (patch)
tree1fe6a89f64cf0ca41023b493f4c9c81e181678a5
parent12045502c49bfee40d7d3cb806d9b70d3b5d3ed3 (diff)
downloadframeworks_base-21bd79f51c032782e3d6ccd22c7e236200d28a94.zip
frameworks_base-21bd79f51c032782e3d6ccd22c7e236200d28a94.tar.gz
frameworks_base-21bd79f51c032782e3d6ccd22c7e236200d28a94.tar.bz2
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>
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java4
1 files changed, 4 insertions, 0 deletions
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
*/