From 2449819b6917a3e66fbf5bba35bfb153b9567e05 Mon Sep 17 00:00:00 2001 From: Mehdi Alizadeh Date: Thu, 15 Mar 2018 13:02:51 -0700 Subject: [PATCH] Adds entries for Soft AP channel and bandwidth Bug: 72643031 Test: It builds Change-Id: I4d6053df5bb9c5d7eee6857bcc097a49922f7966 --- proto/src/wifi.proto | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index 0763fa129f657..39d007092d6ca 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -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