Skip to content

Commit 4937d3c

Browse files
feat(ble): support configurable rxbuf opt feat on ESP32-H2
1 parent ce4e012 commit 4937d3c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

components/bt/controller/esp32h2/Kconfig.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,3 +822,7 @@ config BT_LE_CTRL_ADV_DATA_LENGTH_ZERO_AUX
822822
When this option is enabled, auxiliary packets will be present in the events of
823823
'Non-Connectable and Non-Scannable' regardless of whether the advertising length is 0.
824824
If this option is not enabled, auxiliary packets will only be present when the advertising length is not 0.
825+
826+
config BT_LE_RXBUF_OPT_ENABLED
827+
bool "Enable rxbuf optimization feature"
828+
default y

components/bt/controller/esp32h2/ble.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ void adv_stack_enableScanReqRxdVsEvent(bool en);
4444
void conn_stack_enableChanMapUpdCompVsEvent(bool en);
4545
void sleep_stack_enableWakeupVsEvent(bool en);
4646
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
47+
#if CONFIG_BT_LE_RXBUF_OPT_ENABLED
48+
extern void mmgmt_enableRxbufOptFeature(void);
49+
#endif // CONFIG_BT_LE_RXBUF_OPT_ENABLED
4750

4851
/* Local functions definition
4952
***************************************************************************
@@ -137,6 +140,10 @@ int ble_stack_enable(void)
137140
ble_stack_enableVsEvents(true);
138141
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
139142

143+
#if CONFIG_BT_LE_RXBUF_OPT_ENABLED
144+
mmgmt_enableRxbufOptFeature();
145+
#endif // CONFIG_BT_LE_RXBUF_OPT_ENABLED
146+
140147
return 0;
141148
}
142149

0 commit comments

Comments
 (0)