From a545949b1eb63b95c0156b4980b2341c1c843336 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 28 Feb 2014 20:31:56 -0800 Subject: [PATCH] tools: Add two simple LE white list test commands --- doc/test-coverage.txt | 4 ++-- tools/hci-tester.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/doc/test-coverage.txt b/doc/test-coverage.txt index d37bcb8f2..7965f8e7c 100644 --- a/doc/test-coverage.txt +++ b/doc/test-coverage.txt @@ -40,9 +40,9 @@ rfcomm-tester 9 Kernel RFCOMM implementation testing smp-tester 5 Kernel SMP implementation testing sco-tester 8 Kernel SCO implementation testing gap-tester 1 Daemon D-Bus API testing -hci-tester 12 Controller hardware testing +hci-tester 14 Controller hardware testing ----- - 245 + 247 Android end-to-end testing diff --git a/tools/hci-tester.c b/tools/hci-tester.c index 26ee80007..a5dbde2c9 100644 --- a/tools/hci-tester.c +++ b/tools/hci-tester.c @@ -329,6 +329,16 @@ static void test_read_local_supported_codecs(const void *test_data) test_command(BT_HCI_CMD_READ_LOCAL_CODECS); } +static void test_le_read_white_list_size(const void *test_data) +{ + test_command(BT_HCI_CMD_LE_READ_WHITE_LIST_SIZE); +} + +static void test_le_clear_white_list(const void *test_data) +{ + test_command(BT_HCI_CMD_LE_CLEAR_WHITE_LIST); +} + static void test_inquiry_complete(const void *data, uint8_t size, void *user_data) { @@ -643,6 +653,11 @@ int main(int argc, char *argv[]) test_hci_local("Read Local Supported Codecs", NULL, NULL, test_read_local_supported_codecs); + test_hci_local("LE Read White List Size", NULL, NULL, + test_le_read_white_list_size); + test_hci_local("LE Clear White List", NULL, NULL, + test_le_clear_white_list); + test_hci_local("Inquiry (LIAC)", NULL, NULL, test_inquiry_liac); test_hci("Create Connection", NULL, -- 2.47.3