Bluetooth: Controller: Fix re-encryption procedure

During implementation of alternate encryption procedure
usable in nRF51, commited in
c41d3edda8, 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 <vinayak.kariappa.chettimada@nordicsemi.no>
This commit is contained in:
Vinayak Chettimada 2016-11-04 13:38:50 +01:00 committed by Johan Hedberg
commit d62426030c

View file

@ -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;