Skip to content

Commit f4c8e3f

Browse files
joerchancarlescufi
authored andcommitted
Bluetooth: controller: Fix transaction collision
Peer side will disconnect if controller initiates Encryption procedure before PHY update procedure has finished. Signed-off-by: Joakim Andersson <[email protected]>
1 parent 932a33a commit f4c8e3f

File tree

1 file changed

+5
-0
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+5
-0
lines changed

subsys/bluetooth/controller/ll_sw/ctrl.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11346,7 +11346,12 @@ u8_t ll_enc_req_send(u16_t handle, u8_t *rand, u8_t *ediv, u8_t *ltk)
1134611346
return BT_HCI_ERR_UNKNOWN_CONN_ID;
1134711347
}
1134811348

11349+
#if defined(CONFIG_BT_CTLR_PHY)
11350+
if ((conn->llcp_req != conn->llcp_ack) ||
11351+
(conn->llcp_phy.req != conn->llcp_phy.ack)) {
11352+
#else /* CONFIG_BT_CTLR_PHY */
1134911353
if (conn->llcp_req != conn->llcp_ack) {
11354+
#endif /* CONFIG_BT_CTLR_PHY */
1135011355
return BT_HCI_ERR_CMD_DISALLOWED;
1135111356
}
1135211357

0 commit comments

Comments
 (0)