summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2017-03-08 11:10:08 -0800
committerRandy Pan <zpan@google.com>2017-03-08 13:53:35 -0800
commitde7607b217ca46152a34f578f20735d8b2881025 (patch)
tree1e2d0ff85ed01eb3815ba0cb6fa99485bcb7471d /service
parentdf5dc451ffe849d3dc2f3d6cb6e2360690a3c9a9 (diff)
Log association rejection event
Bug: 34280407 Test: build and boot Change-Id: I5264ef5762b97a77fa6dd6e9b03c043e452ba6bf
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index 4b5fb2544..10f38aa88 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -2311,7 +2311,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
break;
case WifiMonitor.ASSOCIATION_REJECTION_EVENT:
sb.append(" ");
- sb.append(Integer.toString(msg.arg1));
+ sb.append(" timedOut=" + Integer.toString(msg.arg1));
sb.append(" ");
sb.append(Integer.toString(msg.arg2));
String bssid = (String) msg.obj;
@@ -4721,6 +4721,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
NetworkUpdateResult result;
Set<Integer> removedNetworkIds;
int reasonCode;
+ boolean timedOut;
logStateAndMessage(message, this);
switch (message.what) {
@@ -4729,7 +4730,10 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
WifiDiagnostics.REPORT_REASON_ASSOC_FAILURE);
didBlackListBSSID = false;
bssid = (String) message.obj;
+ timedOut = message.arg1 > 0;
reasonCode = message.arg2;
+ Log.d(TAG, "Assocation Rejection event: bssid=" + bssid + " reason code="
+ + reasonCode + " timedOut=" + Boolean.toString(timedOut));
if (bssid == null || TextUtils.isEmpty(bssid)) {
// If BSSID is null, use the target roam BSSID
bssid = mTargetRoamBSSID;