From 2227941edb9e4472275acb5dfa85ea6bdda467cb Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Fri, 17 Nov 2023 15:42:18 +0530 Subject: [PATCH] fixed issue of incorrect IRK being set --- nimble/host/src/ble_hs_startup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nimble/host/src/ble_hs_startup.c b/nimble/host/src/ble_hs_startup.c index 3b34e9ab8..a9c9fe79b 100644 --- a/nimble/host/src/ble_hs_startup.c +++ b/nimble/host/src/ble_hs_startup.c @@ -351,7 +351,6 @@ ble_hs_startup_go(void) { //struct ble_store_gen_key gen_key; int rc; - uint8_t irk[16]; rc = ble_hs_startup_reset_tx(); if (rc != 0) { @@ -422,7 +421,7 @@ ble_hs_startup_go(void) #endif ble_hs_pvcy_set_default_irk(); - ble_hs_pvcy_set_our_irk(irk); + ble_hs_pvcy_set_our_irk(NULL); /* If flow control is enabled, configure the controller to use it. */ ble_hs_flow_startup();