Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d2adc16 authored by Mingguang Xu's avatar Mingguang Xu
Browse files

Add authentication failure reason in ConnectionEvent



To allow for a breakdown of authentication failures.

Bug: 121223972

Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I30898ecb6acd779c1e41baf535bcf45df3ef4b56
Signed-off-by: default avatarMingguang Xu <mingguangxu@google.com>
parent 4020f8c0
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -654,6 +654,26 @@ message ConnectionEvent {
    HLF_UNWANTED = 4;
  }

  // Level 2 failure reason.
  enum Level2FailureReason {

    // Unknown default
    FAILURE_REASON_UNKNOWN = 0;

    // The reason code if there is no error during authentication. It could
    // also imply that there no authentication in progress.
    AUTH_FAILURE_NONE = 1;

    // The reason code if there was a timeout authenticating.
    AUTH_FAILURE_TIMEOUT = 2;

    // The reason code if there was a wrong password while authenticating.
    AUTH_FAILURE_WRONG_PSWD = 3;

    // The reason code if there was EAP failure while authenticating.
    AUTH_FAILURE_EAP_FAILURE = 4;
  }

  // Entity that recommended connecting to this network.
  enum ConnectionNominator {
    // Unknown nominator
@@ -722,6 +742,10 @@ message ConnectionEvent {

  // The currently running network selector when this connection event occurred.
  optional int32 network_selector_experiment_id = 12;

  // Breakdown of level_2_failure_code with more detailed reason.
  optional Level2FailureReason level_2_failure_reason = 13
          [default = FAILURE_REASON_UNKNOWN];
}

// Number of occurrences of a specific RSSI poll rssi value