Bluetooth: controller: Add feature bits for SMI support

Enable setting features bits for Stable Modulation Index in controller
features.

Signed-off-by: Wolfgang Puffitsch <wopu@demant.com>
This commit is contained in:
Wolfgang Puffitsch 2020-01-24 15:38:24 +01:00 committed by Alberto Escolar
commit e477c5a525
2 changed files with 29 additions and 0 deletions

View file

@ -44,6 +44,9 @@ config BT_CTLR_MIN_USED_CHAN_SUPPORT
config BT_CTLR_DTM_HCI_SUPPORT
bool
config BT_CTLR_SMI_SUPPORT
bool
config BT_CTLR_XTAL_ADVANCED_SUPPORT
bool
@ -495,6 +498,18 @@ config BT_CTLR_DTM_HCI
help
Enable support for Direct Test Mode over the HCI transport.
config BT_CTLR_SMI_RX
bool "Stable modulation index - Receiver"
depends on BT_CTLR_SMI_SUPPORT
help
Enable support for Bluetooth 5.0 SMI RX in the Controller.
config BT_CTLR_SMI_TX
bool "Stable modulation index - Transmitter"
depends on BT_CTLR_SMI_SUPPORT
help
Enable support for Bluetooth 5.0 SMI TX in the Controller.
if BT_LL_SW_SPLIT || BT_LL_SW_LEGACY
config BT_CTLR_ADVANCED_FEATURES

View file

@ -84,6 +84,18 @@
#define LL_FEAT_BIT_PHY_CODED 0
#endif /* !CONFIG_BT_CTLR_PHY_CODED */
#if defined(CONFIG_BT_CTLR_SMI_RX)
#define LL_FEAT_BIT_SMI_RX BIT64(BT_LE_FEAT_BIT_SMI_RX)
#else /* !CONFIG_BT_CTLR_SMI_RX */
#define LL_FEAT_BIT_SMI_RX 0
#endif /* !CONFIG_BT_CTLR_SMI_RX */
#if defined(CONFIG_BT_CTLR_SMI_TX)
#define LL_FEAT_BIT_SMI_TX BIT64(BT_LE_FEAT_BIT_SMI_TX)
#else /* !CONFIG_BT_CTLR_SMI_TX */
#define LL_FEAT_BIT_SMI_TX 0
#endif /* !CONFIG_BT_CTLR_SMI_TX */
#define LL_FEAT_BIT_MASK 0x1FFFF
#define LL_FEAT_BIT_MASK_VALID 0x1CF2F
#define LL_FEAT (LL_FEAT_BIT_ENC | \
@ -96,5 +108,7 @@
LL_FEAT_BIT_EXT_SCAN | \
LL_FEAT_BIT_PHY_2M | \
LL_FEAT_BIT_PHY_CODED | \
LL_FEAT_BIT_SMI_RX | \
LL_FEAT_BIT_SMI_TX | \
LL_FEAT_BIT_CHAN_SEL_2 | \
LL_FEAT_BIT_MIN_USED_CHAN)