Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 131f47c2 authored by Mahesh KKV's avatar Mahesh KKV Committed by Sunil Ravi
Browse files

wifi: Add multi link layer stats support to AIDL

Bug: 246988155
Test: mm -j
Change-Id: I9b31988215d3953da6dde80aa68ead9236659d50
parent 5fe40535
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -34,16 +34,5 @@
package android.hardware.wifi;
@VintfStability
parcelable StaLinkLayerIfaceStats {
  int beaconRx;
  int avgRssiMgmt;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeBePktStats;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeBkPktStats;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeViPktStats;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeVoPktStats;
  byte timeSliceDutyCycleInPercent;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeBeContentionTimeStats;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeBkContentionTimeStats;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeViContentionTimeStats;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeVoContentionTimeStats;
  android.hardware.wifi.StaPeerInfo[] peers;
  android.hardware.wifi.StaLinkLayerLinkStats[] links;
}
+50 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2022 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL file. Do not edit it manually. There are
// two cases:
// 1). this is a frozen version file - do not edit this in any case.
// 2). this is a 'current' file. If you make a backwards compatible change to
//     the interface (from the latest frozen version), the build system will
//     prompt you to update this file with `m <name>-update-api`.
//
// You must not make a backward incompatible change to any AIDL file built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.wifi;
@VintfStability
parcelable StaLinkLayerLinkStats {
  int linkId;
  int beaconRx;
  int avgRssiMgmt;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeBePktStats;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeBkPktStats;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeViPktStats;
  android.hardware.wifi.StaLinkLayerIfacePacketStats wmeVoPktStats;
  byte timeSliceDutyCycleInPercent;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeBeContentionTimeStats;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeBkContentionTimeStats;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeViContentionTimeStats;
  android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats wmeVoContentionTimeStats;
  android.hardware.wifi.StaPeerInfo[] peers;
}
+4 −55
Original line number Diff line number Diff line
@@ -16,64 +16,13 @@

package android.hardware.wifi;

import android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats;
import android.hardware.wifi.StaLinkLayerIfacePacketStats;
import android.hardware.wifi.StaPeerInfo;
import android.hardware.wifi.StaLinkLayerLinkStats;

/**
 * Iface statistics for the current connection.
 * Iface statistics for the current connection. Current connection may have
 * single or multiple links.
 */
@VintfStability
parcelable StaLinkLayerIfaceStats {
    /**
     * Number beacons received from the connected AP.
     */
    int beaconRx;
    /**
     * Access Point Beacon and Management frames RSSI (averaged).
     */
    int avgRssiMgmt;
    /**
     * WME Best Effort Access Category packet counters.
     */
    StaLinkLayerIfacePacketStats wmeBePktStats;
    /**
     * WME Background Access Category packet counters.
     */
    StaLinkLayerIfacePacketStats wmeBkPktStats;
    /**
     * WME Video Access Category packet counters.
     */
    StaLinkLayerIfacePacketStats wmeViPktStats;
    /**
     * WME Voice Access Category packet counters.
     */
    StaLinkLayerIfacePacketStats wmeVoPktStats;
    /**
     * Duty cycle for the iface.
     * If this iface is being served using time slicing on a radio with one or more ifaces
     * (i.e MCC), then the duty cycle assigned to this iface in %.
     * If not using time slicing (i.e SCC or DBS), set to 100.
     */
    byte timeSliceDutyCycleInPercent;
    /**
     * WME Best Effort (BE) Access Category (AC) contention time statistics.
     */
    StaLinkLayerIfaceContentionTimeStats wmeBeContentionTimeStats;
    /**
     * WME Background (BK) Access Category (AC) contention time statistics.
     */
    StaLinkLayerIfaceContentionTimeStats wmeBkContentionTimeStats;
    /**
     * WME Video (VI) Access Category (AC) contention time statistics.
     */
    StaLinkLayerIfaceContentionTimeStats wmeViContentionTimeStats;
    /**
     * WME Voice (VO) Access Category (AC) contention time statistics.
     */
    StaLinkLayerIfaceContentionTimeStats wmeVoContentionTimeStats;
    /**
     * Per peer statistics.
     */
    StaPeerInfo[] peers;
    StaLinkLayerLinkStats[] links;
}
+89 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2022 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.wifi;

import android.hardware.wifi.StaLinkLayerIfaceContentionTimeStats;
import android.hardware.wifi.StaLinkLayerIfacePacketStats;
import android.hardware.wifi.StaPeerInfo;

/**
 * Per Link statistics for the current connection. For MLO, this is
 * the statistics for one link in the connection.
 */
@VintfStability
parcelable StaLinkLayerLinkStats {
    /**
     * Identifier for the link within MLO. For single link operation this field
     * is not relevant and can be set to 0.
     */
    int linkId;
    /**
     * Number of beacons received from the connected AP on the link.
     */
    int beaconRx;
    /**
     * Access Point Beacon and Management frames RSSI (averaged) on the link.
     */
    int avgRssiMgmt;
    /**
     * WME Best Effort Access Category packet counters on the link.
     */
    StaLinkLayerIfacePacketStats wmeBePktStats;
    /**
     * WME Background Access Category packet counters on the link.
     */
    StaLinkLayerIfacePacketStats wmeBkPktStats;
    /**
     * WME Video Access Category packet counters on the link.
     */
    StaLinkLayerIfacePacketStats wmeViPktStats;
    /**
     * WME Voice Access Category packet counters on the link.
     */
    StaLinkLayerIfacePacketStats wmeVoPktStats;
    /**
     * Duty cycle for the link.
     * If this link is being served using time slicing on a radio with one or
     * more links then the duty cycle assigned to this link in %. If not using
     * time slicing, set to 100.
     */
    byte timeSliceDutyCycleInPercent;
    /**
     * WME Best Effort (BE) Access Category (AC) contention time statistics on
     * the link.
     */
    StaLinkLayerIfaceContentionTimeStats wmeBeContentionTimeStats;
    /**
     * WME Background (BK) Access Category (AC) contention time statistics on
     * the link.
     */
    StaLinkLayerIfaceContentionTimeStats wmeBkContentionTimeStats;
    /**
     * WME Video (VI) Access Category (AC) contention time statistics on the
     * link.
     */
    StaLinkLayerIfaceContentionTimeStats wmeViContentionTimeStats;
    /**
     * WME Voice (VO) Access Category (AC) contention time statistics on the
     * link.
     */
    StaLinkLayerIfaceContentionTimeStats wmeVoContentionTimeStats;
    /**
     * Per peer statistics for the link.
     */
    StaPeerInfo[] peers;
}