Skip to content

Commit

Permalink
Bluetooth: controller: split: Fix length and ping rsp
Browse files Browse the repository at this point in the history
Fix LENGTH_RSP and PING_RSP to be send after Encryption
Setup under the cases where LENGTH_REQ or PING_REQ cross-
over with ENC_REQ in the same connection event.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information
cvinayak authored and aescolar committed Dec 16, 2019
1 parent f7c890e commit 9bd8518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/bluetooth/controller/ll_sw/ull_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -4409,7 +4409,7 @@ static void length_resp_send(struct ll_conn *conn, struct node_tx *tx,
pdu_tx->llctrl.length_rsp.max_tx_time = sys_cpu_to_le16(eff_tx_time);
#endif /* CONFIG_BT_CTLR_PHY */

ctrl_tx_enqueue(conn, tx);
ctrl_tx_sec_enqueue(conn, tx);
}

static inline int length_req_rsp_recv(struct ll_conn *conn, memq_link_t *link,
Expand Down Expand Up @@ -4669,7 +4669,7 @@ static int ping_resp_send(struct ll_conn *conn, struct node_rx_pdu *rx)
sizeof(struct pdu_data_llctrl_ping_rsp);
pdu_tx->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP;

ctrl_tx_enqueue(conn, tx);
ctrl_tx_sec_enqueue(conn, tx);

/* Mark for buffer for release */
rx->hdr.type = NODE_RX_TYPE_DC_PDU_RELEASE;
Expand Down

0 comments on commit 9bd8518

Please sign in to comment.