Skip to content
Permalink
Browse files

bluetooth: host: Use correct identity when direct advertising

When starting direct advertising use correct identity during
connection lookup.

Signed-off-by: Pawel Dunaj <pawel.dunaj@nordicsemi.no>
  • Loading branch information...
pdunaj authored and carlescufi committed Apr 17, 2019
1 parent 26cfbf8 commit d4dbab9f830e373314175bd7768d5281f34656f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 subsys/bluetooth/host/conn.c
@@ -2031,7 +2031,7 @@ struct bt_conn *bt_conn_create_slave_le(const bt_addr_le_t *peer,
param_int.options |= (BT_LE_ADV_OPT_CONNECTABLE |
BT_LE_ADV_OPT_ONE_TIME);

conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, peer);
conn = bt_conn_lookup_addr_le(param->id, peer);
if (conn) {
switch (conn->state) {
case BT_CONN_CONNECT_DIR_ADV:

0 comments on commit d4dbab9

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