From: Marcel Holtmann Date: Mon, 13 Jan 2014 01:31:32 +0000 (-0800) Subject: tools: Check status of HCI Inquiry Complete event X-Git-Tag: android-x86-4.4-r3~6045 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4e8ff0b5c8b5dbc01027cdf596f59397cfaa122e;p=android-x86%2Fexternal-bluetooth-bluez.git tools: Check status of HCI Inquiry Complete event --- diff --git a/tools/hci-tester.c b/tools/hci-tester.c index 867699580..774642e29 100644 --- 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(); }