[ofono-binder-plugin] Fix call barring and forwarding on some devices. JB#62136
Override default service class with none to fix call barring and forwarding on some devices.
This commit is contained in:
@@ -142,6 +142,15 @@ binder_call_barring_query(
|
||||
{
|
||||
BinderCallBarring* self = ofono_call_barring_get_data(b);
|
||||
|
||||
ofono_warn("binder_call_barring_query cls %i", cls);
|
||||
/*
|
||||
* Modem seems to respond with error to all requests
|
||||
* made with bearer class BEARER_CLASS_DEFAULT.
|
||||
*/
|
||||
if (cls == BEARER_CLASS_DEFAULT) {
|
||||
cls = RADIO_SERVICE_CLASS_NONE;
|
||||
}
|
||||
|
||||
/*
|
||||
* getFacilityLockForApp(int32_t serial, string facility,
|
||||
* string password, int32_t serviceClass, string appId);
|
||||
@@ -210,6 +219,15 @@ binder_call_barring_set(
|
||||
{
|
||||
BinderCallBarring* self = ofono_call_barring_get_data(b);
|
||||
|
||||
ofono_warn("binder_call_barring_set cls %i", cls);
|
||||
/*
|
||||
* Modem seems to respond with error to all requests
|
||||
* made with bearer class BEARER_CLASS_DEFAULT.
|
||||
*/
|
||||
if (cls == BEARER_CLASS_DEFAULT) {
|
||||
cls = RADIO_SERVICE_CLASS_NONE;
|
||||
}
|
||||
|
||||
/*
|
||||
* setFacilityLockForApp(int32_t serial, string facility, bool lockState,
|
||||
* string password, int32_t serviceClass, string appId);
|
||||
|
||||
@@ -86,6 +86,15 @@ binder_call_forwarding_call(
|
||||
BinderCallback cb,
|
||||
void* data)
|
||||
{
|
||||
ofono_warn("binder_call_forwarding_call cls %i", cls);
|
||||
/*
|
||||
* Modem seems to respond with error to all requests
|
||||
* made with bearer class BEARER_CLASS_DEFAULT.
|
||||
*/
|
||||
if (cls == BEARER_CLASS_DEFAULT) {
|
||||
cls = RADIO_SERVICE_CLASS_NONE;
|
||||
}
|
||||
|
||||
/*
|
||||
* getCallForwardStatus(int32_t serial, CallForwardInfo callInfo);
|
||||
* setCallForward(int32_t serial, CallForwardInfo callInfo);
|
||||
|
||||
Reference in New Issue
Block a user