Bluetooth: Rename bt_conn_lookup to bt_conn_lookup_handle
To take multiple different ways of looking up connections rename the existing too generic bt_conn_lookup to bt_conn_lookup_handle. Change-Id: I1c4965ad76738fa08ccca91b28cda552c9a88373 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
c151b84832
commit
ae58464b43
3 changed files with 6 additions and 6 deletions
|
@ -292,7 +292,7 @@ void bt_conn_del(struct bt_conn *conn)
|
|||
bt_conn_put(conn);
|
||||
}
|
||||
|
||||
struct bt_conn *bt_conn_lookup(uint16_t handle)
|
||||
struct bt_conn *bt_conn_lookup_handle(uint16_t handle)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ struct bt_conn *bt_conn_add(struct bt_dev *dev, uint16_t handle);
|
|||
void bt_conn_del(struct bt_conn *conn);
|
||||
|
||||
/* Look up an existing connection */
|
||||
struct bt_conn *bt_conn_lookup(uint16_t handle);
|
||||
struct bt_conn *bt_conn_lookup_handle(uint16_t handle);
|
||||
|
||||
/* Look up an existing connection by address */
|
||||
struct bt_conn *bt_conn_lookup_by_addr_le(const bt_addr_le_t *peer);
|
||||
|
|
|
@ -292,7 +292,7 @@ static void hci_acl(struct bt_buf *buf)
|
|||
return;
|
||||
}
|
||||
|
||||
conn = bt_conn_lookup(buf->acl.handle);
|
||||
conn = bt_conn_lookup_handle(buf->acl.handle);
|
||||
if (!conn) {
|
||||
BT_ERR("Unable to find conn for handle %u\n", buf->acl.handle);
|
||||
bt_buf_put(buf);
|
||||
|
@ -390,7 +390,7 @@ static void hci_disconn_complete(struct bt_buf *buf)
|
|||
return;
|
||||
}
|
||||
|
||||
conn = bt_conn_lookup(handle);
|
||||
conn = bt_conn_lookup_handle(handle);
|
||||
if (!conn) {
|
||||
BT_ERR("Unable to look up conn with handle %u\n", handle);
|
||||
return;
|
||||
|
@ -427,7 +427,7 @@ static void hci_encrypt_change(struct bt_buf *buf)
|
|||
return;
|
||||
}
|
||||
|
||||
conn = bt_conn_lookup(handle);
|
||||
conn = bt_conn_lookup_handle(handle);
|
||||
if (!conn) {
|
||||
BT_ERR("Unable to look up conn with handle %u\n", handle);
|
||||
return;
|
||||
|
@ -619,7 +619,7 @@ static void le_ltk_request(struct bt_buf *buf)
|
|||
|
||||
BT_DBG("handle %u\n", handle);
|
||||
|
||||
conn = bt_conn_lookup(handle);
|
||||
conn = bt_conn_lookup_handle(handle);
|
||||
if (!conn) {
|
||||
BT_ERR("Unable to lookup conn for handle %u\n", handle);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue