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

Commit b1d21e9d authored by Ravi Joshi's avatar Ravi Joshi Committed by Gerrit - the friendly Code Review server
Browse files

Wifi: Add a flag to indicate duplicate network

Add a flag to indicate if a wifiConfiguration is duplicate or not
This flag decides whether the previous network history along
with IP and proxy configurations are required to be copied
or not.

Change-Id: I663d985031c82e64f889044441daee70d17e5ddc
CRs-Fixed: 760505
parent 697e762e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -804,6 +804,12 @@ public class WifiConfiguration implements Parcelable {
     */
    public HashMap<String, Integer>  linkedConfigurations;

    /**
     * @hide
     * Duplicate Wifi Configuration
     */
    public boolean duplicateNetwork;

    public WifiConfiguration() {
        networkId = INVALID_NETWORK_ID;
        SSID = null;
@@ -829,6 +835,7 @@ public class WifiConfiguration implements Parcelable {
        ephemeral = false;
        noInternetAccess = false;
        mIpConfiguration = new IpConfiguration();
        duplicateNetwork = false;
    }

    /**
@@ -1466,6 +1473,7 @@ public class WifiConfiguration implements Parcelable {
                    = source.autoJoinUseAggressiveJoinAttemptThreshold;
            autoJoinBailedDueToLowRssi = source.autoJoinBailedDueToLowRssi;
            dirty = source.dirty;
            duplicateNetwork = source.duplicateNetwork;
        }
    }