--- src/adapter.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 7a5f7b3..7d0c63e 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -3405,7 +3405,7 @@ int btd_adapter_switch_online(struct btd_adapter *adapter) return -EINVAL; if (adapter->up) - return 0; + return -EALREADY; if (adapter->off_timer) off_timer_remove(adapter); @@ -3419,7 +3419,7 @@ int btd_adapter_switch_offline(struct btd_adapter *adapter) return -EINVAL; if (!adapter->up) - return 0; + return -EALREADY; if (adapter->off_timer) return 0; -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html