[PATCHv2 6/8] tester: Add test for LE Read Local PK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

Test that public/private key pair is generated.
---
 tools/hci-tester.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/hci-tester.c b/tools/hci-tester.c
index 4b27038..620832d 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);
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux