atom Enum tofu status
Add the status of TOFU networks to connection result atom.
Bug: 274699029
Test: atest com.android.server.wifi
Change-Id: Ief2cecbcee94139b456537ecf858d52318d6d2bb
diff --git a/stats/atoms.proto b/stats/atoms.proto
index 6972f27..d9079ea 100644
--- a/stats/atoms.proto
+++ b/stats/atoms.proto
@@ -1808,6 +1808,7 @@
optional android.net.wifi.RoamingType passpoint_roaming_type = 16;
// carrier ID of the network
optional int32 carrier_id = 17;
+ optional android.net.wifi.TofuConfiguration tofu_configuration = 18;
}
/**
diff --git a/stats/enums/wifi/enums.proto b/stats/enums/wifi/enums.proto
index f661bf3..efd091e 100644
--- a/stats/enums/wifi/enums.proto
+++ b/stats/enums/wifi/enums.proto
@@ -343,6 +343,19 @@
SECURITY_MODE_NONE = 16;
}
+enum TofuConfiguration {
+ // Default value.
+ TOFU_CONFIGURATION_UNSPECIFIED = 0;
+ // TOFU is not enabled on the enterprise config.
+ TOFU_CONFIGURATION_NOT_ENABLED = 1;
+ // TOFU is enabled pre-connection.
+ TOFU_CONFIGURATION_ENABLED_PRE_CONNECTION = 2;
+ // Root CA was configured post-TOFU connection.
+ TOFU_CONFIGURATION_CONFIGURE_ROOT_CA = 3;
+ // Certificate pinning was used post-TOFU connection.
+ TOFU_CONFIGURATION_CERT_PINNING = 4;
+}
+
/**
* Passpoint release versions
*/