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

Commit 43864702 authored by Nathan Harold's avatar Nathan Harold Committed by android-build-merger
Browse files

Merge "Coerce 8-bit bsic to Integer if Invalid" into nyc-dev

am: 08acd3ce

* commit '08acd3ce':
  Coerce 8-bit bsic to Integer if Invalid

Change-Id: Ib1cf6ecce437c8198da169fd5a4f0d1301e1547e
parents f0db1132 08acd3ce
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -216,7 +216,12 @@ public final class CellIdentityGsm implements Parcelable {
        mLac = in.readInt();
        mCid = in.readInt();
        mArfcn = in.readInt();
        mBsic = in.readInt();
        int bsic = in.readInt();
        // In RIL BSIC is a UINT8, so 0xFF is the 'INVALID' designator
        // for inbound parcels
        if (bsic == 0xFF) bsic = Integer.MAX_VALUE;
        mBsic = bsic;

        if (DBG) log("CellIdentityGsm(Parcel): " + toString());
    }