From 8d7bf14da23a9d98dfa796266738bb7dcda28c70 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 19 Nov 2012 16:03:55 +0100 Subject: [PATCH] neard: Use ENONET error when adapter is not enabled This results in returning error 'Disabled' instead of 'No such Device'. Will allow neard to properly set power state of Bluetooth carrier. --- plugins/neard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/neard.c b/plugins/neard.c index 8f8381c20..1576be535 100644 --- a/plugins/neard.c +++ b/plugins/neard.c @@ -380,7 +380,7 @@ static int check_adapter(struct btd_adapter *adapter) btd_adapter_get_mode(adapter, NULL, NULL, &pairable); if (!pairable || !adapter_get_agent(adapter)) - return -ENOENT; + return -ENONET; if (!btd_adapter_ssp_enabled(adapter)) return -ENOTSUP; -- 2.47.3