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:
b39f74c
)
tools: Check status of HCI Inquiry Complete event
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 13 Jan 2014 01:31:32 +0000
(17:31 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 13 Jan 2014 01:31:32 +0000
(17:31 -0800)
tools/hci-tester.c
patch
|
blob
|
history
diff --git
a/tools/hci-tester.c
b/tools/hci-tester.c
index
8676995
..
774642e
100644
(file)
--- a/
tools/hci-tester.c
+++ b/
tools/hci-tester.c
@@
-227,6
+227,15
@@
static void test_read_local_supported_codecs(const void *test_data)
static void test_inquiry_complete(const void *data, uint8_t size,
void *user_data)
{
+ const struct bt_hci_evt_inquiry_complete *evt = data;
+
+ if (evt->status) {
+ tester_warn("HCI inquiry complete failed (0x%02x)",
+ evt->status);
+ tester_test_failed();
+ return;
+ }
+
tester_test_passed();
}