From a91de62f9053c76406334019f812757a015e7c25 Mon Sep 17 00:00:00 2001 From: h2zero Date: Mon, 2 Jun 2025 18:38:11 -0600 Subject: [PATCH] Fix build with esp32c2 --- src/nimble/nimble/host/src/ble_sm_alg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nimble/nimble/host/src/ble_sm_alg.c b/src/nimble/nimble/host/src/ble_sm_alg.c index 2c502899..95748810 100644 --- a/src/nimble/nimble/host/src/ble_sm_alg.c +++ b/src/nimble/nimble/host/src/ble_sm_alg.c @@ -614,12 +614,14 @@ ble_sm_alg_gen_dhkey(const uint8_t *peer_pub_key_x, const uint8_t *peer_pub_key_ } #endif +#if !CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT /* based on Core Specification 4.2 Vol 3. Part H 2.3.5.6.1 */ static const uint8_t ble_sm_alg_dbg_priv_key[32] = { 0x3f, 0x49, 0xf6, 0xd4, 0xa3, 0xc5, 0x5f, 0x38, 0x74, 0xc9, 0xb3, 0xe3, 0xd2, 0x10, 0x3f, 0x50, 0x4a, 0xff, 0x60, 0x7b, 0xeb, 0x40, 0xb7, 0x99, 0x58, 0x99, 0xb8, 0xa6, 0xcd, 0x3c, 0x1a, 0xbd }; +#endif #if MYNEWT_VAL(BLE_SM_SC_DEBUG_KEYS) static const uint8_t ble_sm_alg_dbg_pub_key[64] = {