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

Commit a86b7b5a authored by Avinash Nalluri's avatar Avinash Nalluri Committed by Bruno Martins
Browse files

Add NR data RAT support

 -This change adds NR in data RAT which can be queried from
  ServiceState.

Change-Id: Ia6c4e7eb358b847a405291b31eda4107a302394f
CRs-Fixed: 2475186
parent e7559840
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -986,6 +986,9 @@ public class ServiceState implements Parcelable {
            case RIL_RADIO_TECHNOLOGY_LTE_CA:
                rtString = "LTE_CA";
                break;
            case RIL_RADIO_TECHNOLOGY_NR:
                rtString = "NR";
                break;
            default:
                rtString = "Unexpected";
                Rlog.w(LOG_TAG, "Unexpected radioTechnology=" + rt);
@@ -1552,6 +1555,7 @@ public class ServiceState implements Parcelable {
                return AccessNetworkType.CDMA2000;
            case RIL_RADIO_TECHNOLOGY_LTE:
            case RIL_RADIO_TECHNOLOGY_LTE_CA:
            case RIL_RADIO_TECHNOLOGY_NR:
                return AccessNetworkType.EUTRAN;
            case RIL_RADIO_TECHNOLOGY_IWLAN:
                return AccessNetworkType.IWLAN;
@@ -1600,6 +1604,8 @@ public class ServiceState implements Parcelable {
                return ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN;
            case TelephonyManager.NETWORK_TYPE_LTE_CA:
                return ServiceState.RIL_RADIO_TECHNOLOGY_LTE_CA;
            case TelephonyManager.NETWORK_TYPE_NR:
                return ServiceState.RIL_RADIO_TECHNOLOGY_NR;
            default:
                return ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN;
        }