struct bt_hci_rsp_le_read_adv_tx_power lratp;
struct bt_hci_rsp_le_read_supported_states lrss;
struct bt_hci_rsp_le_read_white_list_size lrwls;
+ struct bt_hci_rsp_le_rand lr;
struct bt_hci_rsp_remote_name_request_cancel rnrc_rsp;
uint8_t status, page;
cmd_complete(btdev, opcode, &status, sizeof(status));
break;
+ case BT_HCI_CMD_HOST_BUFFER_SIZE:
+ status = BT_HCI_ERR_SUCCESS;
+ cmd_complete(btdev, opcode, &status, sizeof(status));
+ break;
+
case BT_HCI_CMD_READ_INQUIRY_MODE:
if (btdev->type == BTDEV_TYPE_LE)
goto unsupported;
case BT_HCI_CMD_LE_READ_WHITE_LIST_SIZE:
if (btdev->type == BTDEV_TYPE_BREDR)
goto unsupported;
- lrwls.status = 0;
+ lrwls.status = BT_HCI_ERR_SUCCESS;
lrwls.size = 0;
cmd_complete(btdev, opcode, &lrwls, sizeof(lrwls));
break;
cmd_complete(btdev, opcode, &status, sizeof(status));
break;
+ case BT_HCI_CMD_LE_RAND:
+ if (btdev->type == BTDEV_TYPE_BREDR)
+ goto unsupported;
+ lr.status = BT_HCI_ERR_SUCCESS;
+ lr.number[0] = rand();
+ lr.number[1] = rand();
+ lr.number[2] = rand();
+ lr.number[3] = rand();
+ lr.number[4] = rand();
+ lr.number[5] = rand();
+ lr.number[6] = rand();
+ lr.number[7] = rand();
+ cmd_complete(btdev, opcode, &lr, sizeof(lr));
+ break;
+
case BT_HCI_CMD_SETUP_SYNC_CONN:
ssc = data;
status = BT_HCI_ERR_SUCCESS;