Mahesh KKV | 131f47c | 2022-10-22 14:07:21 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.wifi; |
| 18 | |
| 19 | import android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats; |
| 20 | import android.hardware.wifi.StaLinkLayerIfacePacketStats; |
| 21 | import android.hardware.wifi.StaPeerInfo; |
| 22 | |
| 23 | /** |
| 24 | * Per Link statistics for the current connection. For MLO, this is |
| 25 | * the statistics for one link in the connection. |
| 26 | */ |
| 27 | @VintfStability |
| 28 | parcelable StaLinkLayerLinkStats { |
| 29 | /** |
| 30 | * Identifier for the link within MLO. For single link operation this field |
| 31 | * is not relevant and can be set to 0. |
| 32 | */ |
| 33 | int linkId; |
| 34 | /** |
Mahesh KKV | 0da2997 | 2022-12-06 21:11:50 -0800 | [diff] [blame] | 35 | * Radio identifier on which the link is currently operating. Refer |
| 36 | * |StaLinkLayerRadioStats.radioId|. |
| 37 | */ |
| 38 | int radioId; |
| 39 | /** |
| 40 | * Frequency of the link in Mhz. |
| 41 | */ |
| 42 | int frequencyMhz; |
| 43 | /** |
Mahesh KKV | 131f47c | 2022-10-22 14:07:21 -0700 | [diff] [blame] | 44 | * Number of beacons received from the connected AP on the link. |
| 45 | */ |
| 46 | int beaconRx; |
| 47 | /** |
| 48 | * Access Point Beacon and Management frames RSSI (averaged) on the link. |
| 49 | */ |
| 50 | int avgRssiMgmt; |
| 51 | /** |
| 52 | * WME Best Effort Access Category packet counters on the link. |
| 53 | */ |
| 54 | StaLinkLayerIfacePacketStats wmeBePktStats; |
| 55 | /** |
| 56 | * WME Background Access Category packet counters on the link. |
| 57 | */ |
| 58 | StaLinkLayerIfacePacketStats wmeBkPktStats; |
| 59 | /** |
| 60 | * WME Video Access Category packet counters on the link. |
| 61 | */ |
| 62 | StaLinkLayerIfacePacketStats wmeViPktStats; |
| 63 | /** |
| 64 | * WME Voice Access Category packet counters on the link. |
| 65 | */ |
| 66 | StaLinkLayerIfacePacketStats wmeVoPktStats; |
| 67 | /** |
| 68 | * Duty cycle for the link. |
| 69 | * If this link is being served using time slicing on a radio with one or |
| 70 | * more links then the duty cycle assigned to this link in %. If not using |
| 71 | * time slicing, set to 100. |
| 72 | */ |
| 73 | byte timeSliceDutyCycleInPercent; |
| 74 | /** |
| 75 | * WME Best Effort (BE) Access Category (AC) contention time statistics on |
| 76 | * the link. |
| 77 | */ |
| 78 | StaLinkLayerIfaceContentionTimeStats wmeBeContentionTimeStats; |
| 79 | /** |
| 80 | * WME Background (BK) Access Category (AC) contention time statistics on |
| 81 | * the link. |
| 82 | */ |
| 83 | StaLinkLayerIfaceContentionTimeStats wmeBkContentionTimeStats; |
| 84 | /** |
| 85 | * WME Video (VI) Access Category (AC) contention time statistics on the |
| 86 | * link. |
| 87 | */ |
| 88 | StaLinkLayerIfaceContentionTimeStats wmeViContentionTimeStats; |
| 89 | /** |
| 90 | * WME Voice (VO) Access Category (AC) contention time statistics on the |
| 91 | * link. |
| 92 | */ |
| 93 | StaLinkLayerIfaceContentionTimeStats wmeVoContentionTimeStats; |
| 94 | /** |
| 95 | * Per peer statistics for the link. |
| 96 | */ |
| 97 | StaPeerInfo[] peers; |
| 98 | } |