summaryrefslogtreecommitdiffstats
path: root/wifi/java/android/net
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2013-03-11 08:46:06 -0700
committerIrfan Sheriff <isheriff@google.com>2013-03-11 08:47:39 -0700
commitaccec86ce4fc49f1c8031ea7422156195e20c286 (patch)
treedc67ddaa27a166f0bec891d40f2e1c5c40dc3c38 /wifi/java/android/net
parent652b79153f78033494bd6c77e3418cefff2ff48a (diff)
downloadframeworks_base-accec86ce4fc49f1c8031ea7422156195e20c286.zip
frameworks_base-accec86ce4fc49f1c8031ea7422156195e20c286.tar.gz
frameworks_base-accec86ce4fc49f1c8031ea7422156195e20c286.tar.bz2
Fix reconnect/reassociate handling
We are dropping incorrectly when in disconnected state Bug: 8357624 Change-Id: I8919dcd679da6b5fc6c7f671e243f08e42b91ff3
Diffstat (limited to 'wifi/java/android/net')
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java
index d4ec289..ed5d22c 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -3319,9 +3319,14 @@ public class WifiStateMachine extends StateMachine {
}
case CMD_RECONNECT:
case CMD_REASSOCIATE:
- // Drop a third party reconnect/reassociate if we are
- // tempoarily disconnected for p2p
- if (mTemporarilyDisconnectWifi) ret = NOT_HANDLED;
+ if (mTemporarilyDisconnectWifi) {
+ // Drop a third party reconnect/reassociate if STA is
+ // temporarily disconnected for p2p
+ break;
+ } else {
+ // ConnectModeState handles it
+ ret = NOT_HANDLED;
+ }
break;
default:
ret = NOT_HANDLED;