From 686728c09ec94a86afeeb58a936a9f6a4ab5fd83 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Thu, 27 Nov 2025 12:20:30 +0530 Subject: [PATCH] fix(nimble): Add missing header file to fix compilation issue --- nimble/host/include/host/ble_gap.h | 3 ++- nimble/host/src/ble_aes_ccm.c | 1 + nimble/host/src/ble_hs_id.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h index 1ce47df96..5aa1fab76 100644 --- a/nimble/host/include/host/ble_gap.h +++ b/nimble/host/include/host/ble_gap.h @@ -171,7 +171,6 @@ struct hci_conn_update; #define BLE_GAP_EVENT_PER_SUBEV_DATA_REQ 40 #define BLE_GAP_EVENT_PER_SUBEV_RESP 41 #define BLE_GAP_EVENT_PERIODIC_TRANSFER_V2 42 -#define BLE_GAP_EVENT_CACHE_ASSOC 43 /* ISO events */ #define BLE_GAP_EVENT_CIS_ESTAB 43 @@ -186,6 +185,8 @@ struct hci_conn_update; #define BLE_GAP_EVENT_RD_ALL_REM_FEAT 51 #define BLE_GAP_EVENT_MONITOR_ADV_REPORT 52 +#define BLE_GAP_EVENT_CACHE_ASSOC 53 + /* DTM events */ #define BLE_GAP_DTM_TX_START_EVT 0 #define BLE_GAP_DTM_RX_START_EVT 1 diff --git a/nimble/host/src/ble_aes_ccm.c b/nimble/host/src/ble_aes_ccm.c index 7af098302..8a13836fc 100644 --- a/nimble/host/src/ble_aes_ccm.c +++ b/nimble/host/src/ble_aes_ccm.c @@ -72,6 +72,7 @@ ble_aes_ccm_encrypt_be(const uint8_t *key, const uint8_t *plaintext, uint8_t *en } #else +#include int ble_aes_ccm_encrypt_be(const uint8_t *key, const uint8_t *plaintext, uint8_t *enc_data) { diff --git a/nimble/host/src/ble_hs_id.c b/nimble/host/src/ble_hs_id.c index ae423934c..2d05bd8a4 100644 --- a/nimble/host/src/ble_hs_id.c +++ b/nimble/host/src/ble_hs_id.c @@ -389,7 +389,7 @@ void ble_hs_id_reset(void) { memset(ble_hs_id_pub, 0, sizeof ble_hs_id_pub); - memset(ble_hs_id_rnd, 0, sizeof ble_hs_id_pub); + memset(ble_hs_id_rnd, 0, sizeof ble_hs_id_rnd); } /**