mirror of git://git.sysmocom.de/ofono
network: allow drivers to generate more specific error codes
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.
This commit is contained in:
parent
439524211d
commit
19218065a2
|
@ -222,7 +222,7 @@ static void register_callback(const struct ofono_error *error, void *data)
|
||||||
if (error->type == OFONO_ERROR_TYPE_NO_ERROR)
|
if (error->type == OFONO_ERROR_TYPE_NO_ERROR)
|
||||||
reply = dbus_message_new_method_return(netreg->pending);
|
reply = dbus_message_new_method_return(netreg->pending);
|
||||||
else
|
else
|
||||||
reply = __ofono_error_failed(netreg->pending);
|
reply = __ofono_error_from_error(error, netreg->pending);
|
||||||
|
|
||||||
__ofono_dbus_pending_reply(&netreg->pending, reply);
|
__ofono_dbus_pending_reply(&netreg->pending, reply);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue