Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/4] neard: Use ENONET error when adapter is not enabled
@ 2012-11-19 15:03 Szymon Janc
  2012-11-19 15:03 ` [PATCH 2/4] neard: Move device object checking into separate helper Szymon Janc
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Szymon Janc @ 2012-11-19 15:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

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 8f8381c..1576be5 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;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-20 10:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-19 15:03 [PATCH 1/4] neard: Use ENONET error when adapter is not enabled Szymon Janc
2012-11-19 15:03 ` [PATCH 2/4] neard: Move device object checking into separate helper Szymon Janc
2012-11-19 15:03 ` [PATCH 3/4] neard: Add support for nokia.com:bt type Szymon Janc
2012-11-19 15:03 ` [PATCH 4/4] neard: Append hash/randomizer in EIR only if remote provided it Szymon Janc
2012-11-20 10:25 ` [PATCH 1/4] neard: Use ENONET error when adapter is not enabled Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox