Skip to content

Commit 16275c5

Browse files
alda-nordicrlubos
authored andcommitted
bluetooth: improving linking for channel sounding
Allowing users to link-out the channel sounding Initiator role or the Reflector role to improve flash usage. Signed-off-by: Alexandre Dauphinais <[email protected]>
1 parent 8151f20 commit 16275c5

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

subsys/bluetooth/controller/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,33 @@ config BT_CTLR_CHANNEL_SOUNDING_TEST
553553
help
554554
Enable Channel Sounding test command support.
555555

556+
choice BT_CTLR_SDC_CS_ROLE
557+
prompt "Channel Sounding role support"
558+
depends on BT_CTLR_CHANNEL_SOUNDING
559+
default BT_CTLR_SDC_CS_ROLE_BOTH
560+
help
561+
Select Channel Sounding role support.
562+
563+
config BT_CTLR_SDC_CS_ROLE_BOTH
564+
bool "Channel Sounding initiator role and reflector role support"
565+
depends on BT_CTLR_CHANNEL_SOUNDING
566+
help
567+
Enable Channel Sounding initiator role and reflector role support.
568+
569+
config BT_CTLR_SDC_CS_ROLE_INITIATOR_ONLY
570+
bool "Channel Sounding initiator role support only"
571+
depends on BT_CTLR_CHANNEL_SOUNDING
572+
help
573+
Enable Channel Sounding initiator role support only.
574+
575+
config BT_CTLR_SDC_CS_ROLE_REFLECTOR_ONLY
576+
bool "Channel Sounding reflector role support only"
577+
depends on BT_CTLR_CHANNEL_SOUNDING
578+
help
579+
Enable Channel Sounding reflector role support only.
580+
581+
endchoice
582+
556583
config BT_CTLR_SDC_CS_COUNT
557584
int "Number of concurrent connections supporting CS procedures"
558585
default 1

subsys/bluetooth/controller/hci_driver.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,22 @@ static int configure_supported_features(void)
10041004
}
10051005
}
10061006

1007+
if (IS_ENABLED(CONFIG_BT_CTLR_SDC_CS_ROLE_INITIATOR_ONLY) ||
1008+
IS_ENABLED(CONFIG_BT_CTLR_SDC_CS_ROLE_BOTH)) {
1009+
err = sdc_support_channel_sounding_initiator_role();
1010+
if (err) {
1011+
return -ENOTSUP;
1012+
}
1013+
}
1014+
1015+
if (IS_ENABLED(CONFIG_BT_CTLR_SDC_CS_ROLE_REFLECTOR_ONLY) ||
1016+
IS_ENABLED(CONFIG_BT_CTLR_SDC_CS_ROLE_BOTH)) {
1017+
err = sdc_support_channel_sounding_reflector_role();
1018+
if (err) {
1019+
return -ENOTSUP;
1020+
}
1021+
}
1022+
10071023
if (IS_ENABLED(CONFIG_BT_CTLR_SDC_LE_POWER_CLASS_1)) {
10081024
err = sdc_support_le_power_class_1();
10091025
if (err) {

0 commit comments

Comments
 (0)