linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] mgmtops: Handle "Class Of Device Changed" event
@ 2012-02-23 15:58 Anderson Lizardo
  2012-02-23 15:58 ` [PATCH BlueZ 2/2] mgmtops: Add SET_LE/SET_SSP command complete handling Anderson Lizardo
  0 siblings, 1 reply; 3+ messages in thread
From: Anderson Lizardo @ 2012-02-23 15:58 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

This avoids misleading "Unknown Management opcode 7 (index 0)" errors.
---
 plugins/mgmtops.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 4a7bfff..91b4a22 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -1587,6 +1587,9 @@ static gboolean mgmt_event(GIOChannel *io, GIOCondition cond, gpointer user_data
 	case MGMT_EV_NEW_SETTINGS:
 		mgmt_new_settings(sk, index, buf + MGMT_HDR_SIZE, len);
 		break;
+	case MGMT_EV_CLASS_OF_DEV_CHANGED:
+		DBG("hci%u Class of Device changed", index);
+		break;
 	case MGMT_EV_NEW_LINK_KEY:
 		mgmt_new_link_key(sk, index, buf + MGMT_HDR_SIZE, len);
 		break;
-- 
1.7.5.4


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

* [PATCH BlueZ 2/2] mgmtops: Add SET_LE/SET_SSP command complete handling
  2012-02-23 15:58 [PATCH BlueZ 1/2] mgmtops: Handle "Class Of Device Changed" event Anderson Lizardo
@ 2012-02-23 15:58 ` Anderson Lizardo
  2012-02-23 20:41   ` Johan Hedberg
  0 siblings, 1 reply; 3+ messages in thread
From: Anderson Lizardo @ 2012-02-23 15:58 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

This avoids "Unknown command complete for opcode <nn>" errors.
---
 plugins/mgmtops.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 91b4a22..84d9adc 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -1185,6 +1185,12 @@ static void mgmt_cmd_complete(int sk, uint16_t index, void *buf, size_t len)
 	case MGMT_OP_SET_PAIRABLE:
 		mgmt_new_settings(sk, index, ev->data, len);
 		break;
+	case MGMT_OP_SET_SSP:
+		DBG("set_ssp complete");
+		break;
+	case MGMT_OP_SET_LE:
+		DBG("set_le complete");
+		break;
 	case MGMT_OP_ADD_UUID:
 		DBG("add_uuid complete");
 		break;
-- 
1.7.5.4


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

* Re: [PATCH BlueZ 2/2] mgmtops: Add SET_LE/SET_SSP command complete handling
  2012-02-23 15:58 ` [PATCH BlueZ 2/2] mgmtops: Add SET_LE/SET_SSP command complete handling Anderson Lizardo
@ 2012-02-23 20:41   ` Johan Hedberg
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2012-02-23 20:41 UTC (permalink / raw)
  To: Anderson Lizardo; +Cc: linux-bluetooth

Hi Lizardo,

On Thu, Feb 23, 2012, Anderson Lizardo wrote:
> This avoids "Unknown command complete for opcode <nn>" errors.
> ---
>  plugins/mgmtops.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)

Both patches have been applied. Thanks.

Johan

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

end of thread, other threads:[~2012-02-23 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 15:58 [PATCH BlueZ 1/2] mgmtops: Handle "Class Of Device Changed" event Anderson Lizardo
2012-02-23 15:58 ` [PATCH BlueZ 2/2] mgmtops: Add SET_LE/SET_SSP command complete handling Anderson Lizardo
2012-02-23 20:41   ` 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).