feat(ble/bluedroid): reduce bluedroid host heap used for BLE

(cherry picked from commit 438590a1f5)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
This commit is contained in:
Zhi Wei Jian
2026-01-07 17:24:16 +08:00
parent dc7c25f3c9
commit a310a0f355
17 changed files with 172 additions and 56 deletions
@@ -901,7 +901,9 @@ typedef struct {
/* Packet types supported by the local device */
UINT16 btm_acl_pkt_types_supported;
#if (CLASSIC_BT_INCLUDED == TRUE)
UINT16 btm_sco_pkt_types_supported;
#endif // #if (CLASSIC_BT_INCLUDED == TRUE)
/*****************************************************
@@ -971,10 +973,12 @@ typedef struct {
UINT8 acl_disc_reason;
UINT8 trace_level;
UINT8 busy_level; /* the current busy level */
#if (CLASSIC_BT_INCLUDED == TRUE)
BOOLEAN is_paging; /* TRUE, if paging is in progress */
BOOLEAN is_inquiry; /* TRUE, if inquiry is in progress */
fixed_queue_t *page_queue;
BOOLEAN paging;
#endif // #if (CLASSIC_BT_INCLUDED == TRUE)
BOOLEAN discing;
fixed_queue_t *sec_pending_q; /* pending sequrity requests in tBTM_SEC_QUEUE_ENTRY format */
#if (!defined(BT_TRACE_VERBOSE) || (BT_TRACE_VERBOSE == FALSE))