Skip to content
Permalink
Browse files

Bluetooth: controller: Fix pin or key missing response

Fix the missing reset of Encryption Procedure state when the
peripheral responded with error reason as pin or key missing
which otherwise caused connection disconnection on next
reception of data or control packet.

Relates to #15570.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information...
cvinayak authored and carlescufi committed Apr 29, 2019
1 parent e69b4be commit 23636cbae0f4970a39ca35dbd74fcace81e436ad
Showing with 7 additions and 0 deletions.
  1. +7 −0 subsys/bluetooth/controller/ll_sw/ctrl.c
@@ -1921,6 +1921,13 @@ static inline u32_t isr_rx_conn_pkt_ack(struct pdu_data *pdu_data_tx,
}
break;

case PDU_DATA_LLCTRL_TYPE_REJECT_EXT_IND:
if (pdu_data_tx->llctrl.reject_ext_ind.reject_opcode !=
PDU_DATA_LLCTRL_TYPE_ENC_REQ) {
break;
}
/* Pass through */

case PDU_DATA_LLCTRL_TYPE_REJECT_IND:
/* resume data packet rx and tx */
_radio.conn_curr->pause_rx = 0U;

0 comments on commit 23636cb

Please sign in to comment.
You can’t perform that action at this time.