linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mgmt-api: Add missing error code descriptions
@ 2012-10-01  7:49 Szymon Janc
  2012-10-01  7:49 ` [PATCH 2/2] mgmt: Fix error code passed to bonding_complete in disconnect_complete Szymon Janc
  2012-10-01  8:17 ` [PATCH 1/2] mgmt-api: Add missing error code descriptions Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Szymon Janc @ 2012-10-01  7:49 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

---
 doc/mgmt-api.txt |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 3d0b875..202c055 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -54,6 +54,8 @@ and Command Complete events:
 0x0D	Invalid Parameters
 0x0E	Disconnected
 0x0F	Not Powered
+0x10	Cancelled
+0x11	Invalid Index
 
 
 Read Management Version Information Command
-- 
1.7.9.5


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

* [PATCH 2/2] mgmt: Fix error code passed to bonding_complete in disconnect_complete
  2012-10-01  7:49 [PATCH 1/2] mgmt-api: Add missing error code descriptions Szymon Janc
@ 2012-10-01  7:49 ` Szymon Janc
  2012-10-01  8:17 ` [PATCH 1/2] mgmt-api: Add missing error code descriptions Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Szymon Janc @ 2012-10-01  7:49 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

bonding_complete expects mgmt status code not hci error code.

---
 src/mgmt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mgmt.c b/src/mgmt.c
index 2472173..e368b8a 100644
--- a/src/mgmt.c
+++ b/src/mgmt.c
@@ -1166,7 +1166,7 @@ static void disconnect_complete(int sk, uint16_t index, uint8_t status,
 
 	btd_event_disconn_complete(&info->bdaddr, &rp->addr.bdaddr);
 
-	bonding_complete(info, &rp->addr.bdaddr, HCI_CONNECTION_TERMINATED);
+	bonding_complete(info, &rp->addr.bdaddr, MGMT_STATUS_DISCONNECTED);
 }
 
 static void pair_device_complete(int sk, uint16_t index, uint8_t status,
-- 
1.7.9.5


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

* Re: [PATCH 1/2] mgmt-api: Add missing error code descriptions
  2012-10-01  7:49 [PATCH 1/2] mgmt-api: Add missing error code descriptions Szymon Janc
  2012-10-01  7:49 ` [PATCH 2/2] mgmt: Fix error code passed to bonding_complete in disconnect_complete Szymon Janc
@ 2012-10-01  8:17 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2012-10-01  8:17 UTC (permalink / raw)
  To: Szymon Janc; +Cc: linux-bluetooth

Hi Szymon,

On Mon, Oct 01, 2012, Szymon Janc wrote:
> ---
>  doc/mgmt-api.txt |    2 ++
>  1 file changed, 2 insertions(+)

Both patches have been applied. Thanks.

Johan

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

end of thread, other threads:[~2012-10-01  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-01  7:49 [PATCH 1/2] mgmt-api: Add missing error code descriptions Szymon Janc
2012-10-01  7:49 ` [PATCH 2/2] mgmt: Fix error code passed to bonding_complete in disconnect_complete Szymon Janc
2012-10-01  8:17 ` [PATCH 1/2] mgmt-api: Add missing error code descriptions Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).