From d87776a264cc6e89b8906595dc41a799a258a099 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 11 Sep 2013 10:54:22 +0300 Subject: [PATCH] emulator: Disallow SCO HCI commands on LE-only controllers --- emulator/btdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index 40e343d25..0509d374d 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -1725,6 +1725,8 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, break; case BT_HCI_CMD_SETUP_SYNC_CONN: + if (btdev->type == BTDEV_TYPE_LE) + goto unsupported; ssc = data; status = BT_HCI_ERR_SUCCESS; cmd_status(btdev, BT_HCI_ERR_SUCCESS, opcode); @@ -1733,6 +1735,8 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, break; case BT_HCI_CMD_ADD_SCO_CONN: + if (btdev->type == BTDEV_TYPE_LE) + goto unsupported; sco_conn_complete(btdev, BT_HCI_ERR_SUCCESS); break; -- 2.47.3