OSDN Git Service

Adds entries for Soft AP channel and bandwidth
authorMehdi Alizadeh <mett@google.com>
Thu, 15 Mar 2018 20:02:51 +0000 (13:02 -0700)
committerMehdi Alizadeh <mett@google.com>
Thu, 22 Mar 2018 23:12:01 +0000 (23:12 +0000)
Bug: 72643031
Test: It builds
Change-Id: I4d6053df5bb9c5d7eee6857bcc097a49922f7966

proto/src/wifi.proto

index 0763fa1..39d0070 100644 (file)
@@ -1134,14 +1134,38 @@ message SoftApConnectedClientsEvent {
     NUM_CLIENTS_CHANGED = 2;
   }
 
+  // Soft AP channel bandwidth types
+  enum ChannelBandwidth {
+
+    BANDWIDTH_INVALID = 0;
+
+    BANDWIDTH_20_NOHT = 1;
+
+    BANDWIDTH_20 = 2;
+
+    BANDWIDTH_40 = 3;
+
+    BANDWIDTH_80 = 4;
+
+    BANDWIDTH_80P80 = 5;
+
+    BANDWIDTH_160 = 6;
+  }
+
   // Type of event being recorded
   optional SoftApEventType event_type = 1;
 
-  // Absolute time when event happened
+  // Time passed since last boot in milliseconds
   optional int64 time_stamp_millis = 2;
 
   // Number of connected clients if event_type is NUM_CLIENTS_CHANGED, otherwise zero.
   optional int32 num_connected_clients = 3;
+
+  // Channel frequency used for Soft AP
+  optional int32 channel_frequency = 4;
+
+  // Channel bandwidth used for Soft AP
+  optional ChannelBandwidth channel_bandwidth = 5;
 }
 
 // Wps connection metrics