From e20455b9cc84e884458f28850bff765f596ca444 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Mon, 4 May 2020 15:49:08 +0530 Subject: [PATCH] Bluetooth: controller: split: Fix ext create conn when coded PHY unsupp Fix implementation from performing a redundant loop checking for coded PHY create connection parameters in HCI command. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/hci/hci.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/hci/hci.c b/subsys/bluetooth/controller/hci/hci.c index 640a961d03c..b6dbd05ac45 100644 --- a/subsys/bluetooth/controller/hci/hci.c +++ b/subsys/bluetooth/controller/hci/hci.c @@ -1936,7 +1936,14 @@ static void le_ext_create_connection(struct net_buf *buf, struct net_buf **evt) phys = cmd->phys; p = cmd->p; - phys_bitmask = BT_HCI_LE_EXT_SCAN_PHY_CODED | BT_HCI_LE_EXT_SCAN_PHY_1M; + /* Number of bits set indicate scan sets to be configured by calling + * ll_create_connection function. + */ + phys_bitmask = BT_HCI_LE_EXT_SCAN_PHY_1M; + if (IS_ENABLED(CONFIG_BT_CTLR_PHY_CODED)) { + phys_bitmask |= BT_HCI_LE_EXT_SCAN_PHY_CODED; + } + do { uint16_t supervision_timeout; uint16_t conn_interval_max;