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:
Sunil Ravi
2022-11-18 02:06:49 +00:00
parent 99ba55070e
commit f6f6149640
4 changed files with 16 additions and 0 deletions

View File

@@ -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,

View File

@@ -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;
}

View File

@@ -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,

View File

@@ -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;
}