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

Commit 7028e6a4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow primary cell change during RRC idle for NR NSA" into main

parents 7f42e118 b11077d3
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1262,7 +1262,7 @@ public class NetworkTypeController extends StateMachine {
        } else {
            if (mFeatureFlags.supportNrSaRrcIdle() && mDoesPccListIndicateIdle
                    && isUsingPhysicalChannelConfigForRrcDetection()
                    && !mPrimaryCellChangedWhileIdle && isTimerActiveForNrSaRrcIdle()
                    && !mPrimaryCellChangedWhileIdle && isTimerActiveForRrcIdle()
                    && !isNrAdvancedForPccFields(nrBandwidths, nrBands)) {
                log("Allow primary cell change during RRC idle timer without changing state: "
                        + mLastAnchorNrCellId + " -> " + anchorNrCellId);
@@ -1418,11 +1418,13 @@ public class NetworkTypeController extends StateMachine {
        mSecondaryTimerState = "";
    }

    private boolean isTimerActiveForNrSaRrcIdle() {
    private boolean isTimerActiveForRrcIdle() {
        if (mIsPrimaryTimerActive) {
            return mPrimaryTimerState.equals(STATE_CONNECTED_RRC_IDLE);
            return mPrimaryTimerState.equals(STATE_CONNECTED_RRC_IDLE)
                    || mPrimaryTimerState.equals(STATE_NOT_RESTRICTED_RRC_IDLE);
        } else if (mIsSecondaryTimerActive) {
            return mSecondaryTimerState.equals(STATE_CONNECTED_RRC_IDLE);
            return mSecondaryTimerState.equals(STATE_CONNECTED_RRC_IDLE)
                    || mSecondaryTimerState.equals(STATE_NOT_RESTRICTED_RRC_IDLE);
        } else {
            return false;
        }