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

Commit 6d30a0fb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "softap: remove set/getWpa2Passphrase"

parents 0b7ed292 0a3011e5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -5839,7 +5839,6 @@ package android.net.wifi {
    method public int getSecurityType();
    method public int getShutdownTimeoutMillis();
    method @Nullable public String getSsid();
    method @Nullable public String getWpa2Passphrase();
    method public boolean isHiddenSsid();
    method public void writeToParcel(@NonNull android.os.Parcel, int);
    field public static final int BAND_2GHZ = 1; // 0x1
@@ -5865,7 +5864,6 @@ package android.net.wifi {
    method @NonNull public android.net.wifi.SoftApConfiguration.Builder setPassphrase(@Nullable String, int);
    method @NonNull public android.net.wifi.SoftApConfiguration.Builder setShutdownTimeoutMillis(int);
    method @NonNull public android.net.wifi.SoftApConfiguration.Builder setSsid(@Nullable String);
    method @NonNull public android.net.wifi.SoftApConfiguration.Builder setWpa2Passphrase(@Nullable String);
  }
  public final class SoftApInfo implements android.os.Parcelable {
+0 −29
Original line number Diff line number Diff line
@@ -326,19 +326,6 @@ public final class SoftApConfiguration implements Parcelable {
        return mBssid;
    }

    // TODO: Remove it after update the caller
    /**
     * Returns String set to be passphrase for the WPA2-PSK AP.
     * {@link #setWpa2Passphrase(String)}.
     */
    @Nullable
    public String getWpa2Passphrase() {
        if (mSecurityType == SECURITY_TYPE_WPA2_PSK) {
            return mPassphrase;
        }
        return null;
    }

    /**
     * Returns String set to be passphrase for current AP.
     * {@link #setPassphrase(String, @SecurityType int)}.
@@ -505,22 +492,6 @@ public final class SoftApConfiguration implements Parcelable {
            return this;
        }

        // TODO: Remove it after update the caller
        /**
         * Specifies that this AP should use WPA2-PSK with the given ASCII WPA2 passphrase.
         * When set to null, an open network is created.
         * <p>
         *
         * @param passphrase The passphrase to use, or null to unset a previously-set WPA2-PSK
         *                   configuration.
         * @return Builder for chaining.
         * @throws IllegalArgumentException when the passphrase is the empty string
         */
        @NonNull
        public Builder setWpa2Passphrase(@Nullable String passphrase) {
            return setPassphrase(passphrase, SECURITY_TYPE_WPA2_PSK);
        }

        /**
         * Specifies that this AP should use specific security type with the given ASCII passphrase.
         *