libril: Force static radio capability

Force the ril to return REQUEST_NOT_SUPPORTED error on getRadioCapability request.
Android handles the error and makes static radio capability for us, based on our config_radio_access_family overlay.

* Fixes network mode switch
This commit is contained in:
DarkLord1731 2018-06-25 09:22:17 +05:30 committed by Shilin Victor
parent c2d7884f73
commit 605937f3b3

View file

@ -2565,7 +2565,8 @@ Return<void> RadioImpl::getRadioCapability(int32_t serial) {
#if VDBG
RLOGD("getRadioCapability: serial %d", serial);
#endif
dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_RADIO_CAPABILITY);
RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_GET_RADIO_CAPABILITY);
sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED);
return Void();
}