linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] emulator/btdev: Add dummy support for clearing the LE white list
@ 2014-03-01 14:25 Anderson Lizardo
  2014-03-07  9:25 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Anderson Lizardo @ 2014-03-01 14:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

Add just enough support for being able to bring up LE capable virtual
controllers using "btvirt".

Fixes this error on "btvirt -l2":

Unsupported command 0x2010

And on "hciconfig hci0 up":

Can't init device hci0: Invalid request code (56)
---
 emulator/btdev.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 4a54a23..b54f91e 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -2353,6 +2353,13 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode,
 		cmd_complete(btdev, opcode, &lrwls, sizeof(lrwls));
 		break;
 
+	case BT_HCI_CMD_LE_CLEAR_WHITE_LIST:
+		if (btdev->type == BTDEV_TYPE_BREDR)
+			goto unsupported;
+		status = BT_HCI_ERR_SUCCESS;
+		cmd_complete(btdev, opcode, &status, sizeof(status));
+		break;
+
 	case BT_HCI_CMD_LE_READ_SUPPORTED_STATES:
 		if (btdev->type == BTDEV_TYPE_BREDR)
 			goto unsupported;
-- 
1.8.3.2


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

* Re: [PATCH BlueZ] emulator/btdev: Add dummy support for clearing the LE white list
  2014-03-01 14:25 [PATCH BlueZ] emulator/btdev: Add dummy support for clearing the LE white list Anderson Lizardo
@ 2014-03-07  9:25 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2014-03-07  9:25 UTC (permalink / raw)
  To: Anderson Lizardo; +Cc: linux-bluetooth

Hi Lizardo,

On Sat, Mar 01, 2014, Anderson Lizardo wrote:
> Add just enough support for being able to bring up LE capable virtual
> controllers using "btvirt".
> 
> Fixes this error on "btvirt -l2":
> 
> Unsupported command 0x2010
> 
> And on "hciconfig hci0 up":
> 
> Can't init device hci0: Invalid request code (56)
> ---
>  emulator/btdev.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied. Thanks.

Johan

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

end of thread, other threads:[~2014-03-07  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-01 14:25 [PATCH BlueZ] emulator/btdev: Add dummy support for clearing the LE white list Anderson Lizardo
2014-03-07  9:25 ` 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).