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

Commit 08a1faa2 authored by Sukanya Rajkhowa's avatar Sukanya Rajkhowa Committed by Steve Kondik
Browse files

Update LinkProperties with MTU value

Use the MTU provided by network as part of Data Call Response.
If it is not present, use the static value from config file

Change-Id: I9d03cc9b355d09a93883fbf4ddc93fae0077641c
CRs-Fixed: 634747
parent 602a43cd
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -204,8 +204,10 @@ public class MobileDataStateTracker extends BaseNetworkStateTracker {
            loge("CONNECTED event did not supply link properties.");
            loge("CONNECTED event did not supply link properties.");
            mLinkProperties = new LinkProperties();
            mLinkProperties = new LinkProperties();
        }
        }
        if (mLinkProperties.getMtu() <= 0) {
            mLinkProperties.setMtu(mContext.getResources().getInteger(
            mLinkProperties.setMtu(mContext.getResources().getInteger(
                com.android.internal.R.integer.config_mobile_mtu));
                com.android.internal.R.integer.config_mobile_mtu));
        }
        mLinkCapabilities = intent.getParcelableExtra(
        mLinkCapabilities = intent.getParcelableExtra(
                PhoneConstants.DATA_LINK_CAPABILITIES_KEY);
                PhoneConstants.DATA_LINK_CAPABILITIES_KEY);
        if (mLinkCapabilities == null) {
        if (mLinkCapabilities == null) {