Skip to content

Commit 1b33616

Browse files
rugeGerritsennashif
authored andcommitted
Bluetooth: Host: Add log entry for connection creation timeout
This makes it more clear what is happening when the host cancels connection creation where the controller raises the connection complete event with status set to "UNKNOWN CONNECTION IDENTIFIER (0x02)". This is especially useful for developers not familiar with this detail in the spec. See also: Core_v5.4, Vol 4, Part E, Section 7.8.13, LE Create Connection Cancel command. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 1949f32 commit 1b33616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ static void le_conn_complete_cancel(uint8_t err)
12521252
int busy_status = k_work_delayable_busy_get(&conn->deferred_work);
12531253

12541254
if (!(busy_status & (K_WORK_QUEUED | K_WORK_DELAYED))) {
1255-
/* Connection initiation timeout triggered. */
1255+
LOG_WRN("Connection creation timeout triggered");
12561256
conn->err = err;
12571257
bt_conn_set_state(conn, BT_CONN_DISCONNECTED);
12581258
} else {

0 commit comments

Comments
 (0)