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

Commit a088295e authored by Hai Shalom's avatar Hai Shalom Committed by Android (Google) Code Review
Browse files

Merge "[DPP] Add DPP key management capability API"

parents 4dab74f5 1931846f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -29555,6 +29555,7 @@ package android.net.wifi {
    method public int getWifiState();
    method public boolean is5GHzBandSupported();
    method public boolean isDeviceToApRttSupported();
    method public boolean isDppSupported();
    method public boolean isEnhancedPowerReportingSupported();
    method public boolean isOweSupported();
    method public boolean isP2pSupported();
+9 −0
Original line number Diff line number Diff line
@@ -2017,6 +2017,8 @@ public class WifiManager {
    public static final int WIFI_FEATURE_OWE              = 0x20000000; // Enhanced Open
    /** @hide */
    public static final int WIFI_FEATURE_LOW_LATENCY      = 0x40000000; // Low Latency modes
    /** @hide */
    public static final int WIFI_FEATURE_DPP              = 0x80000000; // DPP (Easy-Connect)

    private int getSupportedFeatures() {
        try {
@@ -4462,6 +4464,13 @@ public class WifiManager {
        return isFeatureSupported(WIFI_FEATURE_OWE);
    }

    /**
     * @return true if this device supports Wi-Fi Device Provisioning Protocol (Easy-connect)
     */
    public boolean isDppSupported() {
        return isFeatureSupported(WIFI_FEATURE_DPP);
    }

    /**
     * Gets the factory Wi-Fi MAC addresses.
     * @return Array of String representing Wi-Fi MAC addresses sorted lexically or an empty Array