OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf808a8
)
hciemu: Add support for handling host supported features
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 21 Feb 2012 14:11:11 +0000
(15:11 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 21 Feb 2012 14:11:11 +0000
(15:11 +0100)
test/hciemu.c
patch
|
blob
|
history
diff --git
a/test/hciemu.c
b/test/hciemu.c
index
268a364
..
bfad0dd
100644
(file)
--- 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;