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

Commit f2810ea1 authored by Jack Yu's avatar Jack Yu
Browse files

Fixed incorrect IWLAN service state in legacy mode

Correctly set the right service state for IWLAN
in devices configured as legacy mode.

Bug: 131712688
Test: Manual
Merged-In: I60491e79b2af7b5076660f6f69984b10e12f1cce
Change-Id: I60491e79b2af7b5076660f6f69984b10e12f1cce
(cherry picked from commit 74d8ea72)
parent f82d0598
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5201,7 +5201,7 @@ public class ServiceStateTracker extends Handler {
        // mode, the WWAN registration will correctly report the actual cellular registration info
        // when the device camps on IWLAN.
        if (mTransportManager.isInLegacyMode()) {
            NetworkRegistrationInfo wwanNri = mSS.getNetworkRegistrationInfo(
            NetworkRegistrationInfo wwanNri = mNewSS.getNetworkRegistrationInfo(
                    NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
            if (wwanNri != null && wwanNri.getAccessNetworkTechnology()
                    == TelephonyManager.NETWORK_TYPE_IWLAN) {
@@ -5214,7 +5214,7 @@ public class ServiceStateTracker extends Handler {
                        .setEmergencyOnly(wwanNri.isEmergencyEnabled())
                        .setAvailableServices(wwanNri.getAvailableServices())
                        .build();
                mSS.addNetworkRegistrationInfo(wlanNri);
                mNewSS.addNetworkRegistrationInfo(wlanNri);
            }
        }
    }