Skip to content

Commit d8f5a50

Browse files
sean-madiganrlubos
authored andcommitted
bluetooth: controller: hci_driver: Add option to enable power class 1
This KConfig enables the feature bit for power class 1 in the controller. Required if a customer wants to transmit at >10dBm Signed-off-by: Sean Madigan <[email protected]>
1 parent aeef812 commit d8f5a50

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

subsys/bluetooth/controller/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,5 +585,13 @@ config BT_CTLR_SDC_CS_COUNT
585585
help
586586
Set the number of concurrent connections that can support Channel Sounding procedure.
587587

588+
config BT_CTLR_SDC_LE_POWER_CLASS_1
589+
bool "Device supports transmitting at LE Power Class 1 level"
590+
default y if BT_CTLR_TX_PWR_ANTENNA >= 10
591+
help
592+
This should be set if the device supports transmitting above +10dBm.
593+
See Bluetooth Core Specification, Vol 6, Part A, Section 3
594+
Transmitter Characteristics for more information.
595+
588596
endmenu
589597
endif # BT_LL_SOFTDEVICE

subsys/bluetooth/controller/hci_driver.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,13 @@ static int configure_supported_features(void)
945945
}
946946
}
947947

948+
if (IS_ENABLED(CONFIG_BT_CTLR_SDC_LE_POWER_CLASS_1)) {
949+
err = sdc_support_le_power_class_1();
950+
if (err) {
951+
return -ENOTSUP;
952+
}
953+
}
954+
948955
return 0;
949956
}
950957

0 commit comments

Comments
 (0)