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

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

Fixed that tethering not working

Fixed tethering not working when both DUN and Default
APN type are specified in the APN database. The data connection
with same APN for DUN was brought up incorrectly. We should reuse
the existing default connection for DUN.

Bug: 71562600
Test: Manual tests
Change-Id: Idf52c00d5371aaaa3091c9728a99905ab3b2f471
parent 991bb433
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1976,8 +1976,8 @@ public class DcTracker extends Handler {
        // a dun-profiled connection so we can't share an existing one
        // On GSM/LTE we can share existing apn connections provided they support
        // this type.
        if (apnContext.getApnType() != PhoneConstants.APN_TYPE_DUN ||
                teardownForDun() == false) {
        if (!apnContext.getApnType().equals(PhoneConstants.APN_TYPE_DUN)
                || ServiceState.isGsm(mPhone.getServiceState().getRilDataRadioTechnology())) {
            dcac = checkForCompatibleConnectedApnContext(apnContext);
            if (dcac != null) {
                // Get the dcacApnSetting for the connection we want to share.