mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
ril: Add support for roamingProtocol parcel member
This is needed for Samsung devices like the Galaxy A5 2017. Change-Id: I549130b838377d8a8668ac59b51c314fe9e7f5ab
This commit is contained in:
parent
c41b85cf57
commit
ffe632e356
2 changed files with 11 additions and 0 deletions
|
@ -50,6 +50,10 @@ ifeq ($(BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD), true)
|
|||
LOCAL_CFLAGS += -DNEEDS_VIDEO_CALL_FIELD
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_NEEDS_ROAMING_PROTOCOL_FIELD), true)
|
||||
LOCAL_CFLAGS += -DNEEDS_ROAMING_PROTOCOL_FIELD
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
|
||||
LOCAL_C_INCLUDES += external/nanopb-c
|
||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
|
||||
|
|
|
@ -1941,6 +1941,13 @@ Return<void> RadioImpl::setInitialAttachApn(int32_t serial, const DataProfileInf
|
|||
return Void();
|
||||
}
|
||||
|
||||
#ifdef NEEDS_ROAMING_PROTOCOL_FIELD
|
||||
if (!copyHidlStringToRil(&iaa.roamingProtocol, dataProfileInfo.roamingProtocol, pRI)) {
|
||||
memsetAndFreeStrings(4, iaa.apn, iaa.protocol, iaa.username, iaa.roamingProtocol);
|
||||
return Void();
|
||||
}
|
||||
#endif
|
||||
|
||||
CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId);
|
||||
|
||||
memsetAndFreeStrings(4, iaa.apn, iaa.protocol, iaa.username, iaa.password);
|
||||
|
|
Loading…
Reference in a new issue