forked from espressif/esp-idf
feat(ble): support configurable rxbuf opt feat on ESP32-H2
(cherry picked from commit 4937d3c883
)
Co-authored-by: cjin <jinchen@espressif.com>
This commit is contained in:
@ -822,3 +822,7 @@ config BT_LE_CTRL_ADV_DATA_LENGTH_ZERO_AUX
|
|||||||
When this option is enabled, auxiliary packets will be present in the events of
|
When this option is enabled, auxiliary packets will be present in the events of
|
||||||
'Non-Connectable and Non-Scannable' regardless of whether the advertising length is 0.
|
'Non-Connectable and Non-Scannable' regardless of whether the advertising length is 0.
|
||||||
If this option is not enabled, auxiliary packets will only be present when the advertising length is not 0.
|
If this option is not enabled, auxiliary packets will only be present when the advertising length is not 0.
|
||||||
|
|
||||||
|
config BT_LE_RXBUF_OPT_ENABLED
|
||||||
|
bool "Enable rxbuf optimization feature"
|
||||||
|
default y
|
||||||
|
@ -44,6 +44,9 @@ void adv_stack_enableScanReqRxdVsEvent(bool en);
|
|||||||
void conn_stack_enableChanMapUpdCompVsEvent(bool en);
|
void conn_stack_enableChanMapUpdCompVsEvent(bool en);
|
||||||
void sleep_stack_enableWakeupVsEvent(bool en);
|
void sleep_stack_enableWakeupVsEvent(bool en);
|
||||||
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
|
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
|
||||||
|
#if CONFIG_BT_LE_RXBUF_OPT_ENABLED
|
||||||
|
extern void mmgmt_enableRxbufOptFeature(void);
|
||||||
|
#endif // CONFIG_BT_LE_RXBUF_OPT_ENABLED
|
||||||
|
|
||||||
/* Local functions definition
|
/* Local functions definition
|
||||||
***************************************************************************
|
***************************************************************************
|
||||||
@ -137,6 +140,10 @@ int ble_stack_enable(void)
|
|||||||
ble_stack_enableVsEvents(true);
|
ble_stack_enableVsEvents(true);
|
||||||
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
|
#endif // (CONFIG_BT_NIMBLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED)
|
||||||
|
|
||||||
|
#if CONFIG_BT_LE_RXBUF_OPT_ENABLED
|
||||||
|
mmgmt_enableRxbufOptFeature();
|
||||||
|
#endif // CONFIG_BT_LE_RXBUF_OPT_ENABLED
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user