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

Commit 9a71912d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Disable 5G Scanning in NetworkScanHelper" into rvc-dev am: a8bee76d...

Merge "Disable 5G Scanning in NetworkScanHelper" into rvc-dev am: a8bee76d am: 17718f97 am: 2cec639f

Change-Id: Ibe4f5cd65b531f0b26a38cdef0227b1b482d4987
parents 90d62de4 2cec639f
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -113,12 +113,19 @@ public class NetworkScanHelper {
            radioAccessSpecifiers.add(
                    new RadioAccessSpecifier(AccessNetworkType.EUTRAN, null, null));
        }
        if (networkTypeBitmap3gpp == 0
                || (networkTypeBitmap3gpp & TelephonyManager.NETWORK_CLASS_BITMASK_5G) != 0) {
            radioAccessSpecifiers.add(
                    new RadioAccessSpecifier(AccessNetworkType.NGRAN, null, null));
        }

        // If a device supports 5G stand-alone then the code below should be re-enabled; however
        // a device supporting only non-standalone mode cannot perform PLMN selection and camp on
        // a 5G network, which means that it shouldn't scan for 5G at the expense of battery as
        // part of the manual network selection process.
        //
        // FIXME(b/151119451): re-enable this code once there is a way to distinguish SA from NSA
        // support in the modem.
        //
        // if (networkTypeBitmap3gpp == 0
        //        || (networkTypeBitmap3gpp & TelephonyManager.NETWORK_CLASS_BITMASK_5G) != 0) {
        //    radioAccessSpecifiers.add(
        //            new RadioAccessSpecifier(AccessNetworkType.NGRAN, null, null));
        // }

        return new NetworkScanRequest(
                NetworkScanRequest.SCAN_TYPE_ONE_SHOT,