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

Commit 4dbd9985 authored by Nathan Harold's avatar Nathan Harold Committed by Automerger Merge Worker
Browse files

Merge "Fix LTE_CA bit to be enabled for < 1.5" into rvc-dev am: 89a5a2f1 am: ab155fd8

Change-Id: I331626081c4101859567c0fc593bc497be97e049
parents c9d2d9c7 ab155fd8
Loading
Loading
Loading
Loading
+9 −10
Original line number Original line Diff line number Diff line
@@ -355,14 +355,8 @@ public class CellularNetworkService extends NetworkService {
            List<Integer> availableServices = getAvailableServices(
            List<Integer> availableServices = getAvailableServices(
                    regState, domain, emergencyOnly);
                    regState, domain, emergencyOnly);


            // In earlier versions of the HAL, LTE_CA was allowed to indicate that the device
            // is on CA; however, that has been superseded by the PHYSICAL_CHANNEL_CONFIG signal.
            // Because some vendors provide both NETWORK_TYPE_LTE_CA *and* PHYSICAL_CHANNEL_CONFIG,
            // this tweak is left for compatibility; however, the network type is no longer allowed
            // to be used to declare that carrier aggregation is in effect, because the other
            // signal provides a much richer information set, and we want to mitigate confusion in
            // how CA information is being provided.
            if (networkType == TelephonyManager.NETWORK_TYPE_LTE_CA) {
            if (networkType == TelephonyManager.NETWORK_TYPE_LTE_CA) {
                isUsingCarrierAggregation = true;
                networkType = TelephonyManager.NETWORK_TYPE_LTE;
                networkType = TelephonyManager.NETWORK_TYPE_LTE;
            }
            }


@@ -388,9 +382,14 @@ public class CellularNetworkService extends NetworkService {


            // Network Type fixup for carrier aggregation
            // Network Type fixup for carrier aggregation
            int networkType = ServiceState.rilRadioTechnologyToNetworkType(regResult.rat);
            int networkType = ServiceState.rilRadioTechnologyToNetworkType(regResult.rat);
            boolean isUsingCarrierAggregation = false;
            // In earlier versions of the HAL, LTE_CA was allowed to indicate that the device
            // is on CA; however, that has been superseded by the PHYSICAL_CHANNEL_CONFIG signal.
            // Because some vendors provide both NETWORK_TYPE_LTE_CA *and* PHYSICAL_CHANNEL_CONFIG,
            // this tweak is left for compatibility; however, the network type is no longer allowed
            // to be used to declare that carrier aggregation is in effect, because the other
            // signal provides a much richer information set, and we want to mitigate confusion in
            // how CA information is being provided.
            if (networkType == TelephonyManager.NETWORK_TYPE_LTE_CA) {
            if (networkType == TelephonyManager.NETWORK_TYPE_LTE_CA) {
                isUsingCarrierAggregation = true;
                networkType = TelephonyManager.NETWORK_TYPE_LTE;
                networkType = TelephonyManager.NETWORK_TYPE_LTE;
            }
            }


@@ -449,7 +448,7 @@ public class CellularNetworkService extends NetworkService {
                    return new NetworkRegistrationInfo(domain, transportType, regState, networkType,
                    return new NetworkRegistrationInfo(domain, transportType, regState, networkType,
                            reasonForDenial, isEmergencyOnly, availableServices, cellIdentity,
                            reasonForDenial, isEmergencyOnly, availableServices, cellIdentity,
                            rplmn, MAX_DATA_CALLS, isDcNrRestricted, isNrAvailable, isEndcAvailable,
                            rplmn, MAX_DATA_CALLS, isDcNrRestricted, isNrAvailable, isEndcAvailable,
                            vopsInfo, isUsingCarrierAggregation);
                            vopsInfo, false /* isUsingCarrierAggregation */);
            }
            }
        }
        }