diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.h | 1 | ||||
-rw-r--r-- | src/device.c | 2 | ||||
-rw-r--r-- | src/error.c | 6 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/connman.h b/src/connman.h index 175a6cc1..44ff9543 100644 --- a/src/connman.h +++ b/src/connman.h @@ -33,6 +33,7 @@ void __connman_dbus_cleanup(void); DBusMessage *__connman_error_failed(DBusMessage *msg); DBusMessage *__connman_error_invalid_arguments(DBusMessage *msg); DBusMessage *__connman_error_permission_denied(DBusMessage *msg); +DBusMessage *__connman_error_not_supported(DBusMessage *msg); int __connman_selftest(void); diff --git a/src/device.c b/src/device.c index 561cd358..71e4dc2b 100644 --- a/src/device.c +++ b/src/device.c @@ -238,7 +238,7 @@ static DBusMessage *propose_scan(DBusConnection *conn, { DBG("conn %p", conn); - return __connman_error_failed(msg); + return __connman_error_not_supported(msg); } static GDBusMethodTable device_methods[] = { diff --git a/src/error.c b/src/error.c index 21606cbc..a78c7990 100644 --- a/src/error.c +++ b/src/error.c @@ -44,3 +44,9 @@ DBusMessage *__connman_error_permission_denied(DBusMessage *msg) return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE ".PermissionDenied", NULL); } + +DBusMessage *__connman_error_not_supported(DBusMessage *msg) +{ + return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE + ".NotSupported", NULL); +} |