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

Commit 6b4a44bc authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

Merge "supplicant(interface): Add support for get/set raw psk" am: 4da1a8bf am: cb5c9a51

am: b8af857a

Change-Id: Id8fc0b21983db503cc9e1ed96931f713df0d54c1
parents 0d6118f7 b8af857a
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -276,6 +276,20 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork {
   */
  setPskPassphrase(string psk) generates (SupplicantStatus status);

  /**
   * Set raw psk for WPA_PSK network.
   *
   * @param psk value to set as specified in IEEE 802.11i-2004 standard.
   *        This is the calculated using 'wpa_passphrase <ssid> [passphrase]'
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setPsk(uint8_t[32] psk) generates (SupplicantStatus status);

  /**
   * Set WEP key for WEP network.
   *
@@ -662,6 +676,8 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork {

  /**
   * Get passphrase for WPA_PSK network.
   * Must return a failure if network has no passphrase set (use |getPsk| if
   * network was configured with raw psk instead).
   *
   * @return status Status of the operation.
   *         Possible status codes:
@@ -671,6 +687,19 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork {
   */
  getPskPassphrase() generates (SupplicantStatus status, string psk);

  /**
   * Get raw psk for WPA_PSK network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @param psk value set.
   */
  getPsk() generates (SupplicantStatus status, uint8_t[32] psk);

  /**
   * Get WEP key for WEP network.
   *