Skip to content

Commit d17ed46

Browse files
sean-madigancvinayak
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]> (cherry picked from commit d8f5a50) Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 05b4a11 commit d17ed46

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
@@ -550,5 +550,13 @@ config BT_CTLR_SDC_CIS_SUBEVENT_LENGTH_US
550550
If this parameter is set to zero, the subevent length
551551
is chosen by the controller.
552552

553+
config BT_CTLR_SDC_LE_POWER_CLASS_1
554+
bool "Device supports transmitting at LE Power Class 1 level"
555+
default y if BT_CTLR_TX_PWR_ANTENNA >= 10
556+
help
557+
This should be set if the device supports transmitting above +10dBm.
558+
See Bluetooth Core Specification, Vol 6, Part A, Section 3
559+
Transmitter Characteristics for more information.
560+
553561
endmenu
554562
endif # BT_LL_SOFTDEVICE

subsys/bluetooth/controller/hci_driver.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,13 @@ static int configure_supported_features(void)
828828
}
829829
}
830830

831+
if (IS_ENABLED(CONFIG_BT_CTLR_SDC_LE_POWER_CLASS_1)) {
832+
err = sdc_support_le_power_class_1();
833+
if (err) {
834+
return -ENOTSUP;
835+
}
836+
}
837+
831838
return 0;
832839
}
833840

0 commit comments

Comments
 (0)