mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
tools: Check status of HCI Inquiry Complete event
This commit is contained in:
parent
b39f74c2d8
commit
4e8ff0b5c8
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user