mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user