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

Commit f6f61496 authored by Sunil Ravi's avatar Sunil Ravi
Browse files

wifi: Add frequency/Bandwidth to AIDL RttResults

Bug: 222186547
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Test: Manual - Verified the results using wifirttscan app
Change-Id: I958d1e61ab3cf32caf9381579a06c376fe51c093
parent 99ba5507
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
package android.hardware.wifi;
@Backing(type="int") @VintfStability
enum RttBw {
  BW_UNSPECIFIED = 0,
  BW_5MHZ = 1,
  BW_10MHZ = 2,
  BW_20MHZ = 4,
+2 −0
Original line number Diff line number Diff line
@@ -57,4 +57,6 @@ parcelable RttResult {
  int negotiatedBurstNum;
  android.hardware.wifi.WifiInformationElement lci;
  android.hardware.wifi.WifiInformationElement lcr;
  int channelFreqMHz;
  android.hardware.wifi.RttBw packetBw;
}
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ package android.hardware.wifi;
@VintfStability
@Backing(type="int")
enum RttBw {
    BW_UNSPECIFIED = 0x0,
    BW_5MHZ = 0x01,
    BW_10MHZ = 0x02,
    BW_20MHZ = 0x04,
+12 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.hardware.wifi;

import android.hardware.wifi.RttBw;
import android.hardware.wifi.RttStatus;
import android.hardware.wifi.RttType;
import android.hardware.wifi.WifiInformationElement;
@@ -132,4 +133,15 @@ parcelable RttResult {
     * For 11mc only.
     */
    WifiInformationElement lcr;
    /**
     * RTT channel frequency in MHz
     * If frequency is unknown, this will be set to 0.
     */
    int channelFreqMHz;
    /**
     * RTT packet bandwidth.
     * This value is an average bandwidth of the bandwidths of measurement
     * frames. Cap the average close to a specific valid RttBw.
     */
    RttBw packetBw;
}