blob: 203280252773742689cf247a24f60f79955adf25 [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.StaRateStat;
20
21/**
22 * Per peer statistics. Types of peers include the Access Point (AP), Tunneled Direct Link
23 * Setup (TDLS), Group Owner (GO), Neighbor Awareness Networking (NAN), etc.
24 */
25@VintfStability
26parcelable StaPeerInfo {
27 /**
28 * Station count: The total number of stations currently associated with the peer.
29 */
30 char staCount;
31 /**
32 * Channel utilization: The percentage of time (normalized to 255, i.e., x% corresponds to
33 * (int) x * 255 / 100) that the medium is sensed as busy measured by either physical or
34 * virtual carrier sense (CS) mechanism.
35 */
36 char chanUtil;
37 /**
38 * Per rate statistics.
39 */
40 StaRateStat[] rateStats;
41}