For certain modems it's not clear if they support all actions or not.
In such cases use CME errors which allows generate NotSupported
messages.
---
 src/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network.c b/src/network.c
index 6e69b078495f..ae3175d4a7e9 100644
--- a/src/network.c
+++ b/src/network.c
@@ -222,7 +222,7 @@ static void register_callback(const struct ofono_error 
*error, void *data)
        if (error->type == OFONO_ERROR_TYPE_NO_ERROR)
                reply = dbus_message_new_method_return(netreg->pending);
        else
-               reply = __ofono_error_failed(netreg->pending);
+               reply = __ofono_error_from_error(error, netreg->pending);
 
        __ofono_dbus_pending_reply(&netreg->pending, reply);
 
-- 
2.15.1

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to