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

Commit f58c8e09 authored by maheshkkv's avatar maheshkkv
Browse files

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
parent 7482f1a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,6 +40,6 @@ parcelable TwtCapabilities {
  boolean isFlexibleTwtScheduleSupported;
  int minWakeDurationMicros;
  int maxWakeDurationMicros;
  int minWakeIntervalMicros;
  int maxWakeIntervalMicros;
  long minWakeIntervalMicros;
  long maxWakeIntervalMicros;
}
+2 −2
Original line number Diff line number Diff line
@@ -37,6 +37,6 @@ parcelable TwtRequest {
  int mloLinkId;
  int minWakeDurationMicros;
  int maxWakeDurationMicros;
  int minWakeIntervalMicros;
  int maxWakeIntervalMicros;
  long minWakeIntervalMicros;
  long maxWakeIntervalMicros;
}
+1 −1
Original line number Diff line number Diff line
@@ -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;
+2 −2
Original line number Diff line number Diff line
@@ -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;
}
+2 −2
Original line number Diff line number Diff line
@@ -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;
}
Loading