Skip to content

Commit 5fbbec8

Browse files
feat(ble): support configurable rxbuf opt feat on ESP32-C6
1 parent 4937d3c commit 5fbbec8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

components/bt/controller/esp32c6/Kconfig.in

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

components/bt/controller/esp32c6/ble.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ void adv_stack_enableScanReqRxdVsEvent(bool en);
4747
void conn_stack_enableChanMapUpdCompVsEvent(bool en);
4848
void sleep_stack_enableWakeupVsEvent(bool en);
4949
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
50+
#if CONFIG_BT_LE_RXBUF_OPT_ENABLED
51+
extern void mmgmt_enableRxbufOptFeature(void);
52+
#endif // CONFIG_BT_LE_RXBUF_OPT_ENABLED
5053

5154
/* Local functions definition
5255
***************************************************************************
@@ -143,6 +146,10 @@ int ble_stack_enable(void)
143146
ble_stack_enableVsEvents(true);
144147
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
145148

149+
#if CONFIG_BT_LE_RXBUF_OPT_ENABLED
150+
mmgmt_enableRxbufOptFeature();
151+
#endif // CONFIG_BT_LE_RXBUF_OPT_ENABLED
152+
146153
return 0;
147154
}
148155

0 commit comments

Comments
 (0)