Skip to content
Permalink
Browse files

bluetooth: Fix bt_conn->id handling

Fixed bt_conn->id handling in bt_conn_create_slave_le function.

Fixes: #15698

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
  • Loading branch information...
MarekPieta authored and jhedberg committed Apr 26, 2019
1 parent d44086d commit 0654c33229e93d3dcdcf071227ec656789100866
Showing with 1 addition and 0 deletions.
  1. +1 −0 subsys/bluetooth/host/conn.c
@@ -2061,6 +2061,7 @@ struct bt_conn *bt_conn_create_slave_le(const bt_addr_le_t *peer,
return NULL;
}

conn->id = param->id;
bt_conn_set_state(conn, BT_CONN_CONNECT_DIR_ADV);

err = bt_le_adv_start_internal(&param_int, NULL, 0, NULL, 0, peer);

0 comments on commit 0654c33

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