From 8ada121b6881fcd7701eaa3a9a2741e1b8c333f9 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Sat, 19 Oct 2019 05:26:04 +0530 Subject: [PATCH] Bluetooth: controller: split: Fix slave latency enable Fix regression in porting slave latency, slave latency enabled was not used, cause slave latency to be applied before first packet being acknowledged by the master. Regression in commit 5dff214d57eb ("Bluetooth: controller: split: Fix missing slave latency impl."). Signed-off-by: Vinayak Kariappa Chettimada --- 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 94325042fe9..92cd1940132 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn.c @@ -963,7 +963,7 @@ void ull_conn_done(struct node_rx_event_done *done) lll->memq_tx.tail, NULL)) { lll->latency_event = 0; - } else { + } else if (lll->slave.latency_enabled) { lll->latency_event = lll->latency; } } else if (reason_peer) {