Compare commits

...

1 Commits

Author SHA1 Message Date
Matti Lehtimäki
aa5f4642ca [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.
2024-05-29 14:00:24 +03:00
2 changed files with 27 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);