From 26a97aed4f095ad464394450c13d3a5a27f1b756 Mon Sep 17 00:00:00 2001 From: Andries Kruithof Date: Mon, 13 Jan 2020 15:25:07 +0100 Subject: [PATCH] Bluetooth: controller: split: Fix LENGTH_REQ PDU prepare There is an obscure bug in the case that CFG_BT_CTLR_PHY is not defined; when a feature-exchange already has happened the lr->max_tx_time and lr->max_rx_time are not calculated. This bug is fixed by this commit. Signed-off-by: Andries Kruithof --- subsys/bluetooth/controller/ll_sw/ull_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull_conn.c b/subsys/bluetooth/controller/ll_sw/ull_conn.c index 2f6d9e37daf..8b4285538be 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn.c @@ -3170,7 +3170,7 @@ static inline void event_len_prep(struct ll_conn *conn) #endif /* CONFIG_BT_CTLR_PHY_2M */ 1) #else /* !CONFIG_BT_CTLR_PHY */ - 0 + 1 #endif /* !CONFIG_BT_CTLR_PHY */ ) { u16_t rx_time = PKT_US(LL_LENGTH_OCTETS_RX_MAX, 0);