From d62426030c431d22beabdd81e27d8193a5032e4a Mon Sep 17 00:00:00 2001 From: Vinayak Chettimada Date: Fri, 4 Nov 2016 13:38:50 +0100 Subject: [PATCH] Bluetooth: Controller: Fix re-encryption procedure During implementation of alternate encryption procedure usable in nRF51, commited in c41d3edda8cd25de5e88efb2b24a79fef60fa26d, re-encryption procedure was broken. This commit fixes the issue, and now re-encryption should work on both nRF51 and nRF52. Change-id: Ia41200f42b1d46e1f3f35ff44b582d4ffcc5f4fa Signed-off-by: Vinayak Chettimada --- subsys/bluetooth/controller/ll/ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll/ctrl.c b/subsys/bluetooth/controller/ll/ctrl.c index 1f1a5f8767f..333605ac3e6 100644 --- a/subsys/bluetooth/controller/ll/ctrl.c +++ b/subsys/bluetooth/controller/ll/ctrl.c @@ -4610,7 +4610,7 @@ static inline void event_enc_prep(struct connection *conn) start_enc_rsp_send(conn, pdu_ctrl_tx); } /* slave send reject ind or start enc req at control priority */ - else if (!conn->pause_tx) { + else if (!conn->pause_tx || conn->refresh) { /* ll ctrl packet */ pdu_ctrl_tx->ll_id = PDU_DATA_LLID_CTRL;