Skip to content

Commit 79cb615

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: split: Port Enc setup to be queueable
Port the fix for the controller implementation to make start encryption queueable if there is any control procedure in progress. Refer to #15335. Relates to #15335, #15186, #15958 and #14636. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent 69fc29d commit 79cb615

File tree

5 files changed

+178
-124
lines changed

5 files changed

+178
-124
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,6 @@ u8_t ll_adv_enable(u8_t enable)
564564
conn_lll->nesn = 0;
565565
conn_lll->empty = 0;
566566

567-
#if defined(CONFIG_BT_CTLR_LE_ENC)
568-
conn_lll->enc_rx = 0;
569-
conn_lll->enc_tx = 0;
570-
#endif /* CONFIG_BT_CTLR_LE_ENC */
571-
572567
#if defined(CONFIG_BT_CTLR_DATA_LENGTH)
573568
conn_lll->max_tx_octets = PDU_DC_PAYLOAD_SIZE_MIN;
574569
conn_lll->max_rx_octets = PDU_DC_PAYLOAD_SIZE_MIN;
@@ -627,7 +622,10 @@ u8_t ll_adv_enable(u8_t enable)
627622
conn->llcp_terminate.node_rx.hdr.link = link;
628623

629624
#if defined(CONFIG_BT_CTLR_LE_ENC)
630-
conn->pause_tx = conn->pause_rx = conn->refresh = 0;
625+
conn_lll->enc_rx = conn_lll->enc_tx = 0U;
626+
conn->llcp_enc.req = conn->llcp_enc.ack = 0U;
627+
conn->llcp_enc.pause_tx = conn->llcp_enc.pause_rx = 0U;
628+
conn->llcp_enc.refresh = 0U;
631629
#endif /* CONFIG_BT_CTLR_LE_ENC */
632630

633631
#if defined(CONFIG_BT_CTLR_CONN_PARAM_REQ)

0 commit comments

Comments
 (0)