summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author xshu <xshu@google.com> 2018-09-17 17:30:15 -0700
committer xshu <xshu@google.com> 2018-10-02 17:59:50 -0700
commitfb9e5decf76c60824d550ea9548098c009dd64cf (patch)
tree5c839d65f5f76a095fa8758db7d1db9e6bc0fb56
parent7c5c4d1ca8a0222fbb7bb552bfc641f271191a71 (diff)
proto change for wifi link layer usage stats
Adds a new proto field. Bug: 77603419 Test: compile, unit test Change-Id: I540e0eda718b6ef586837855e8d650f373f986f2 Merged-In: I540e0eda718b6ef586837855e8d650f373f986f2 (cherry picked from commit 0e0dea406e2a3b256fdb258df75b38c905144534)
-rw-r--r--proto/src/wifi.proto20
1 files changed, 20 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto
index b29c992120d4..bde603038b90 100644
--- a/proto/src/wifi.proto
+++ b/proto/src/wifi.proto
@@ -462,6 +462,9 @@ message WifiLog {
// Hardware revision (EVT, DVT, PVT etc.)
optional string hardware_revision = 124;
+
+ // Total wifi link layer usage data over the logging duration in ms.
+ optional WifiLinkLayerUsageStats wifi_link_layer_usage_stats = 125;
}
// Information that gets logged for every WiFi connection.
@@ -1536,3 +1539,20 @@ message PasspointProfileTypeCount {
// Num of installed Passpoint profile with same eap method
optional int32 count = 2;
}
+
+message WifiLinkLayerUsageStats {
+ // Total logging duration in ms.
+ optional int64 logging_duration_ms = 1;
+
+ // Total time the wifi radio is on in ms over the logging duration.
+ optional int64 radio_on_time_ms = 2;
+
+ // Total time the wifi radio is doing tx in ms over the logging duration.
+ optional int64 radio_tx_time_ms = 3;
+
+ // Total time the wifi radio is doing rx in ms over the logging duration.
+ optional int64 radio_rx_time_ms = 4;
+
+ // Total time the wifi radio is scanning in ms over the logging duration.
+ optional int64 radio_scan_time_ms = 5;
+} \ No newline at end of file