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

Commit cdf2ef0b authored by Nate Jiang's avatar Nate Jiang
Browse files

Change the value of constant according to the spec

Re-assign the value according to the Wifi Aware R4.0 section 9.5.21.1
Also correct several comments.

Bug: 269440402
Test: build
Change-Id: Ib3dd6365b2a28f871ec6ae3775ee8b9e9481475f
parent 4a7a06fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,6 +39,6 @@ enum NanCipherSuiteType {
  SHARED_KEY_256_MASK = (1 << 1) /* 2 */,
  PUBLIC_KEY_2WDH_128_MASK = (1 << 2) /* 4 */,
  PUBLIC_KEY_2WDH_256_MASK = (1 << 3) /* 8 */,
  PUBLIC_KEY_PASN_128_MASK = (1 << 4) /* 16 */,
  PUBLIC_KEY_PASN_256_MASK = (1 << 5) /* 32 */,
  PUBLIC_KEY_PASN_128_MASK = (1 << 6) /* 64 */,
  PUBLIC_KEY_PASN_256_MASK = (1 << 7) /* 128 */,
}
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ parcelable NanBootstrappingConfirmInd {
    int comeBackDelay;

    /**
     * Cookie received from the comeback response.
     * Cookie received from peer with |comeBackDelay| for follow up |NanBootstrappingRequest|
     */
    byte[] cookie;
}
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ parcelable NanBootstrappingRequest {
    NanBootstrappingMethod requestBootstrappingMethod;

    /**
     * Cookie for the follow up request
     * Cookie received from previous |NanBootstrappingConfirmInd| for comeback request.
     */
    byte[] cookie;
}
+13 −3
Original line number Diff line number Diff line
@@ -17,13 +17,19 @@
package android.hardware.wifi;

/**
 * Cipher suite flags. Wi-Fi Aware Specification 4.0 section 7.1.2
 * Cipher suite flags. Wi-Fi Aware Specification 4.0 section 9.5.21.1.
 */
@VintfStability
@Backing(type="int")
enum NanCipherSuiteType {
    NONE = 0,
    /**
     *  NCS-SK-128
     */
    SHARED_KEY_128_MASK = 1 << 0,
    /**
     *  NCS-SK-256
     */
    SHARED_KEY_256_MASK = 1 << 1,
    /**
     *  NCS-PK-2WDH-128
@@ -33,12 +39,16 @@ enum NanCipherSuiteType {
     *  NCS-PK-2WDH-256
     */
    PUBLIC_KEY_2WDH_256_MASK = 1 << 3,
    /**
     * bit 4 and bit 5 are reserved for NCS-GTK-CCMP-128 and NCS-GTK-CCMP-256. Which are not used
     * from framework
     */
    /**
     *  NCS-PK-PASN-128
     */
    PUBLIC_KEY_PASN_128_MASK = 1 << 4,
    PUBLIC_KEY_PASN_128_MASK = 1 << 6,
    /**
     *  NCS-PK-PASN-256
     */
    PUBLIC_KEY_PASN_256_MASK = 1 << 5,
    PUBLIC_KEY_PASN_256_MASK = 1 << 7,
}
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ package android.hardware.wifi;
@VintfStability
parcelable NanSuspensionModeChangeInd {
    /**
     * Indication whether the device has entered or existed the NAN suspension mode(deep sleep)
     * Indication whether the device has entered or exited the NAN suspension mode(deep sleep)
     */
    boolean isSuspended;
}