OSDN Git Service

emulator: Add support for LE Read White List Size command
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 26 Jan 2013 17:13:52 +0000 (19:13 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 26 Jan 2013 17:14:35 +0000 (19:14 +0200)
emulator/btdev.c

index 451cf37..3f5a89d 100644 (file)
@@ -694,6 +694,7 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode,
        struct bt_hci_rsp_le_read_local_features lrlf;
        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 lrws;
        uint8_t status, page;
 
        switch (opcode) {
@@ -1120,6 +1121,11 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode,
                cmd_complete(btdev, opcode, &status, sizeof(status));
                break;
 
+       case BT_HCI_CMD_LE_READ_WHITE_LIST_SIZE:
+               lrws.status = 0;
+               lrws.size = 0;
+               cmd_complete(btdev, opcode, &lrws, sizeof(lrws));
+
        case BT_HCI_CMD_LE_READ_SUPPORTED_STATES:
                lrss.status = BT_HCI_ERR_SUCCESS;
                memcpy(lrss.states, btdev->le_states, 8);