Skip to content

Commit c07feda

Browse files
thomas-m-johansencvinayak
authored andcommitted
bluetooth: controller: add missing feature bit for power class 1
When power class 1 was enabled the feature feature bit was not being set. Signed-off-by: Thomas Johansen <[email protected]> (cherry picked from commit 399a846) Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent e6b3167 commit c07feda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

subsys/bluetooth/controller/hci_internal.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,6 @@ void hci_internal_le_supported_features(
696696
features->params.extended_reject_indication = 1;
697697
features->params.slave_initiated_features_exchange = 1;
698698
features->params.le_ping = 1;
699-
features->params.le_Power_class_1 = 1;
700699

701700
#ifdef CONFIG_BT_CTLR_DATA_LENGTH
702701
features->params.le_data_packet_length_extension = 1;
@@ -775,6 +774,10 @@ void hci_internal_le_supported_features(
775774
#if defined(CONFIG_BT_CTLR_SDC_PAWR_SYNC)
776775
features->params.periodic_advertising_with_responses_scanner = 1;
777776
#endif
777+
778+
#if defined(CONFIG_BT_CTLR_SDC_LE_POWER_CLASS_1)
779+
features->params.le_Power_class_1 = 1;
780+
#endif /* CONFIG_BT_CTLR_SDC_LE_POWER_CLASS_1 */
778781
}
779782

780783
static void le_read_supported_states(uint8_t *buf)

0 commit comments

Comments
 (0)