From 3f0f513bea30a5c67a17023f4fea098c0692dde0 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 6 Nov 2019 18:48:47 +0100 Subject: [PATCH] auto-pts: set fixed IRK --- test/auto-pts/btpclient.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/auto-pts/btpclient.c b/test/auto-pts/btpclient.c index ebe15ec85..470ce87f3 100644 --- a/test/auto-pts/btpclient.c +++ b/test/auto-pts/btpclient.c @@ -542,6 +542,12 @@ int btstack_main(int argc, const char * argv[]) le_device_db_init(); sm_init(); + // use fixed IRK + uint8_t test_irk[16] = { 0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF,0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF }; + sm_test_set_irk(test_irk); + printf("TEST IRK: "); + printf_hexdump(test_irk, 16); + // register for HCI events hci_event_callback_registration.callback = &btstack_packet_handler; hci_add_event_handler(&hci_event_callback_registration);