mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Make TWT wake interval type as long
As the TWT Wake Interval Mantissa is a 2-byte field and TWT Wake Interval Exponent is a 5-bit field, Maximum TWT Wake Interval = 65,535 x [2^31] microseconds. So make TWT wake inteval field type as long to avoid overflow. Bug: 296108122 Test: m Change-Id: Id77cd094ae0601839de7f01994072d50ec39cd56
This commit is contained in:
@@ -40,6 +40,6 @@ parcelable TwtCapabilities {
|
||||
boolean isFlexibleTwtScheduleSupported;
|
||||
int minWakeDurationMicros;
|
||||
int maxWakeDurationMicros;
|
||||
int minWakeIntervalMicros;
|
||||
int maxWakeIntervalMicros;
|
||||
long minWakeIntervalMicros;
|
||||
long maxWakeIntervalMicros;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,6 @@ parcelable TwtRequest {
|
||||
int mloLinkId;
|
||||
int minWakeDurationMicros;
|
||||
int maxWakeDurationMicros;
|
||||
int minWakeIntervalMicros;
|
||||
int maxWakeIntervalMicros;
|
||||
long minWakeIntervalMicros;
|
||||
long maxWakeIntervalMicros;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ parcelable TwtSession {
|
||||
int sessionId;
|
||||
int mloLinkId;
|
||||
int wakeDurationMicros;
|
||||
int wakeIntervalMicros;
|
||||
long wakeIntervalMicros;
|
||||
android.hardware.wifi.TwtSession.TwtNegotiationType negotiationType;
|
||||
boolean isTriggerEnabled;
|
||||
boolean isAnnounced;
|
||||
|
||||
@@ -48,9 +48,9 @@ parcelable TwtCapabilities {
|
||||
/**
|
||||
* Minimum TWT wake interval in microseconds.
|
||||
*/
|
||||
int minWakeIntervalMicros;
|
||||
long minWakeIntervalMicros;
|
||||
/**
|
||||
* Maximum TWT wake interval in microseconds.
|
||||
*/
|
||||
int maxWakeIntervalMicros;
|
||||
long maxWakeIntervalMicros;
|
||||
}
|
||||
|
||||
@@ -36,9 +36,9 @@ parcelable TwtRequest {
|
||||
/**
|
||||
* Minimum TWT wake interval in microseconds.
|
||||
*/
|
||||
int minWakeIntervalMicros;
|
||||
long minWakeIntervalMicros;
|
||||
/**
|
||||
* Maximum TWT wake interval in microseconds.
|
||||
*/
|
||||
int maxWakeIntervalMicros;
|
||||
long maxWakeIntervalMicros;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ parcelable TwtSession {
|
||||
/**
|
||||
* Time interval in microseconds between two successive TWT service periods.
|
||||
*/
|
||||
int wakeIntervalMicros;
|
||||
long wakeIntervalMicros;
|
||||
|
||||
/**
|
||||
* TWT negotiation type.
|
||||
|
||||
Reference in New Issue
Block a user