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:
Alexander Couzens 2017-12-05 19:20:14 +01:00 committed by Denis Kenzior
parent 439524211d
commit 19218065a2
1 changed files with 1 additions and 1 deletions

View File

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