diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-02-21 15:11:11 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-02-21 15:11:11 +0100 |
commit | e31e02e66723f9b113cfce8e137bfa6c28b863bc (patch) | |
tree | 2d77d5cdb9a8ffac6b2b93b2da21d04f4c262796 /test | |
parent | cf808a866a2188d33d2b20610c12155cc039d1de (diff) |
hciemu: Add support for handling host supported features
Diffstat (limited to 'test')
-rw-r--r-- | test/hciemu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/hciemu.c b/test/hciemu.c index 268a3649..bfad0ddc 100644 --- a/test/hciemu.c +++ b/test/hciemu.c @@ -779,8 +779,15 @@ static void hci_info_param(uint16_t ocf, int plen, uint8_t *data) ef.status = 0x00; if (*data == 0) { ef.page_num = 0; - ef.max_page_num = 0; + ef.max_page_num = 1; memcpy(ef.features, vdev.features, 8); + } else if (*data == 1) { + ef.page_num = 1; + ef.max_page_num = 1; + memset(ef.features, 0, 8); + ef.features[0] |= (!!vdev.ssp_mode << 0); + ef.features[0] |= (!!vdev.le_mode << 1); + ef.features[0] |= (!!vdev.le_simul << 2); } else { ef.page_num = *data; ef.max_page_num = 0; |