Skip to content

Commit 15d3b57

Browse files
cvinayakfabiobaltieri
authored andcommitted
Bluetooth: Controller: Fix inter-operability when BT_PHY_UPDATE=n
Fix inter-operability, when BT_PHY_UPDATE=n the feature bits contained 2M and Coded PHY when Advertising Extensions where enabled, and Central devices did not progress with any data packet transfers when PHY_REQ was rejected as unknown PDU. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent ddf28d4 commit 15d3b57

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

subsys/bluetooth/controller/include/ll_feat.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
#define LL_FEAT_BIT_EXT_SCAN 0
6464
#endif /* !CONFIG_BT_CTLR_EXT_SCAN_FP */
6565

66-
#if defined(CONFIG_BT_CTLR_PHY_2M)
66+
#if defined(CONFIG_BT_CTLR_PHY) && defined(CONFIG_BT_CTLR_PHY_2M)
6767
#define LL_FEAT_BIT_PHY_2M BIT64(BT_LE_FEAT_BIT_PHY_2M)
68-
#else /* !CONFIG_BT_CTLR_PHY_2M */
68+
#else /* !CONFIG_BT_CTLR_PHY || !CONFIG_BT_CTLR_PHY_2M */
6969
#define LL_FEAT_BIT_PHY_2M 0
70-
#endif /* !CONFIG_BT_CTLR_PHY_2M */
70+
#endif /* !CONFIG_BT_CTLR_PHY || !CONFIG_BT_CTLR_PHY_2M */
7171

7272
#if defined(CONFIG_BT_CTLR_SMI_TX)
7373
#if defined(CONFIG_BT_CTLR_SMI_TX_SETTING)
@@ -86,11 +86,11 @@
8686
#define LL_FEAT_BIT_SMI_RX 0
8787
#endif /* !CONFIG_BT_CTLR_SMI_RX */
8888

89-
#if defined(CONFIG_BT_CTLR_PHY_CODED)
89+
#if defined(CONFIG_BT_CTLR_PHY) && defined(CONFIG_BT_CTLR_PHY_CODED)
9090
#define LL_FEAT_BIT_PHY_CODED BIT64(BT_LE_FEAT_BIT_PHY_CODED)
91-
#else /* !CONFIG_BT_CTLR_PHY_CODED */
91+
#else /* !CONFIG_BT_CTLR_PHY || !CONFIG_BT_CTLR_PHY_CODED */
9292
#define LL_FEAT_BIT_PHY_CODED 0
93-
#endif /* !CONFIG_BT_CTLR_PHY_CODED */
93+
#endif /* !CONFIG_BT_CTLR_PHY || !CONFIG_BT_CTLR_PHY_CODED */
9494

9595
#if defined(CONFIG_BT_CTLR_ADV_EXT)
9696
#define LL_FEAT_BIT_EXT_ADV BIT64(BT_LE_FEAT_BIT_EXT_ADV)

0 commit comments

Comments
 (0)