DO NOT MERGE: Fix to maintain the Carrier Network connection.
Added isCarrierNetwork param in WifiConfiguration, which is then used in WifiStateMachine. After this change, the connection to Carrier Network should be maintained. BUG: 30760683 Change-Id: I88e01ff44f494a6eda5e2e8a088d069638b72c89
This commit is contained in:
@@ -477,6 +477,12 @@ public class WifiConfiguration implements Parcelable {
|
|||||||
/** @hide **/
|
/** @hide **/
|
||||||
public static int INVALID_RSSI = -127;
|
public static int INVALID_RSSI = -127;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @hide
|
||||||
|
* Set to true if this is a Carrier Network, else set to false.
|
||||||
|
*/
|
||||||
|
public boolean isCarrierNetwork = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hide
|
* @hide
|
||||||
* A summary of the RSSI and Band status for that configuration
|
* A summary of the RSSI and Band status for that configuration
|
||||||
@@ -1552,6 +1558,7 @@ public class WifiConfiguration implements Parcelable {
|
|||||||
sbuf.append(" lcuid=" + lastConnectUid);
|
sbuf.append(" lcuid=" + lastConnectUid);
|
||||||
sbuf.append(" userApproved=" + userApprovedAsString(userApproved));
|
sbuf.append(" userApproved=" + userApprovedAsString(userApproved));
|
||||||
sbuf.append(" noInternetAccessExpected=" + noInternetAccessExpected);
|
sbuf.append(" noInternetAccessExpected=" + noInternetAccessExpected);
|
||||||
|
sbuf.append(" isCarrierNetwork=" + isCarrierNetwork);
|
||||||
sbuf.append(" ");
|
sbuf.append(" ");
|
||||||
|
|
||||||
if (this.lastConnected != 0) {
|
if (this.lastConnected != 0) {
|
||||||
@@ -1917,6 +1924,7 @@ public class WifiConfiguration implements Parcelable {
|
|||||||
userApproved = source.userApproved;
|
userApproved = source.userApproved;
|
||||||
numNoInternetAccessReports = source.numNoInternetAccessReports;
|
numNoInternetAccessReports = source.numNoInternetAccessReports;
|
||||||
noInternetAccessExpected = source.noInternetAccessExpected;
|
noInternetAccessExpected = source.noInternetAccessExpected;
|
||||||
|
isCarrierNetwork = source.isCarrierNetwork;
|
||||||
creationTime = source.creationTime;
|
creationTime = source.creationTime;
|
||||||
updateTime = source.updateTime;
|
updateTime = source.updateTime;
|
||||||
shared = source.shared;
|
shared = source.shared;
|
||||||
@@ -1988,6 +1996,7 @@ public class WifiConfiguration implements Parcelable {
|
|||||||
dest.writeInt(userApproved);
|
dest.writeInt(userApproved);
|
||||||
dest.writeInt(numNoInternetAccessReports);
|
dest.writeInt(numNoInternetAccessReports);
|
||||||
dest.writeInt(noInternetAccessExpected ? 1 : 0);
|
dest.writeInt(noInternetAccessExpected ? 1 : 0);
|
||||||
|
dest.writeInt(isCarrierNetwork ? 1 : 0);
|
||||||
dest.writeInt(shared ? 1 : 0);
|
dest.writeInt(shared ? 1 : 0);
|
||||||
dest.writeString(mPasspointManagementObjectTree);
|
dest.writeString(mPasspointManagementObjectTree);
|
||||||
}
|
}
|
||||||
@@ -2059,6 +2068,7 @@ public class WifiConfiguration implements Parcelable {
|
|||||||
config.userApproved = in.readInt();
|
config.userApproved = in.readInt();
|
||||||
config.numNoInternetAccessReports = in.readInt();
|
config.numNoInternetAccessReports = in.readInt();
|
||||||
config.noInternetAccessExpected = in.readInt() != 0;
|
config.noInternetAccessExpected = in.readInt() != 0;
|
||||||
|
config.isCarrierNetwork = in.readInt() != 0;
|
||||||
config.shared = in.readInt() != 0;
|
config.shared = in.readInt() != 0;
|
||||||
config.mPasspointManagementObjectTree = in.readString();
|
config.mPasspointManagementObjectTree = in.readString();
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Reference in New Issue
Block a user