blob: 83268848415a96c8aed846502d51f244617d69e8 [file] [log] [blame]
Gabriel Biren910d5df2022-04-08 18:21:22 +00001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.wifi;
18
19import android.hardware.wifi.WifiRateInfo;
20
21/**
22 * Per rate statistics. The rate is characterized by the combination of preamble, number
23 * of spatial streams, transmission bandwidth, and modulation and coding scheme (MCS).
24 */
25@VintfStability
26parcelable StaRateStat {
27 /**
28 * Wifi rate information: preamble, number of spatial streams, bandwidth, MCS, etc.
29 */
30 WifiRateInfo rateInfo;
31 /**
32 * Number of successfully transmitted data packets (ACK received).
33 */
34 int txMpdu;
35 /**
36 * Number of received data packets.
37 */
38 int rxMpdu;
39 /**
40 * Number of data packet losses (no ACK).
41 */
42 int mpduLost;
43 /**
44 * Number of data packet retries.
45 */
46 int retries;
47}