summaryrefslogtreecommitdiff
path: root/tools/hci-tester.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2015-05-15 16:46:24 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2015-05-17 10:39:12 +0300
commita36a7af598daa5eeebc909607d4f8df7e2f9e91e (patch)
tree81cf3a60191313dd4f42914f0b56a5e804d68ded /tools/hci-tester.c
parent409de1873033e06047bb997c6ac781fd17ced735 (diff)
downloadbluez-a36a7af598daa5eeebc909607d4f8df7e2f9e91e.tar.gz
tester: Add test for LE Read Local PK
Test that public/private key pair is generated.
Diffstat (limited to 'tools/hci-tester.c')
-rw-r--r--tools/hci-tester.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/hci-tester.c b/tools/hci-tester.c
index 4b27038dd..620832d9e 100644
--- a/tools/hci-tester.c
+++ b/tools/hci-tester.c
@@ -411,6 +411,11 @@ static void test_le_rand(const void *test_data)
test_command(BT_HCI_CMD_LE_RAND);
}
+static void test_le_read_local_pk(const void *test_data)
+{
+ test_command(BT_HCI_CMD_LE_READ_LOCAL_PK256);
+}
+
static void test_inquiry_complete(const void *data, uint8_t size,
void *user_data)
{
@@ -733,6 +738,8 @@ int main(int argc, char *argv[])
test_le_encrypt);
test_hci_local("LE Rand", NULL, NULL,
test_le_rand);
+ test_hci_local("LE Read Local PK", NULL, NULL,
+ test_le_read_local_pk);
test_hci_local("Inquiry (LIAC)", NULL, NULL, test_inquiry_liac);