summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorsunil duttu <duttus@codeaurora.org>2013-04-30 17:23:25 -0700
committerDmitry Shmidt <dimitrysh@google.com>2013-04-30 17:23:25 -0700
commite325e416d65bdc1f7b17d584dfd1c463d07ed5ba (patch)
treed2b4f42650330e060d747874a5674985f86b0be8 /wifi
parent9af61ff66a799b8065d7cc5c4882178827a0061f (diff)
downloadframeworks_base-e325e416d65bdc1f7b17d584dfd1c463d07ed5ba.zip
frameworks_base-e325e416d65bdc1f7b17d584dfd1c463d07ed5ba.tar.gz
frameworks_base-e325e416d65bdc1f7b17d584dfd1c463d07ed5ba.tar.bz2
framework: When turn off of SoftAp immediately call turning ON SoftAp
Due to sub system restart, there is state change of softAp tether state machine in tethered state triggering turnoff SoftAp this should be follwed by turnon softap. Change-Id: I7fbc87ff270d0d720f06ae3697a1ce81f8444ee0
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java
index 9cae2cb..995ef50 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -3598,6 +3598,7 @@ public class WifiStateMachine extends StateMachine {
if (!isWifiTethered(stateChange.active)) {
loge("Tethering reports wifi as untethered!, shut down soft Ap");
setHostApRunning(null, false);
+ setHostApRunning(null, true);
}
return HANDLED;
case CMD_STOP_AP: