drivers/nble: Implement bt_conn_get_info and bt_conn_get_dst
Change-Id: Ida9ca9c499bc3789ec15705c04c32dbb22e49165 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
b35bf098a0
commit
97e359e6ab
1 changed files with 7 additions and 2 deletions
|
@ -103,12 +103,17 @@ struct bt_conn *bt_conn_lookup_addr_le(const bt_addr_le_t *peer)
|
||||||
|
|
||||||
const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn)
|
const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn)
|
||||||
{
|
{
|
||||||
return NULL;
|
return &conn->dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info)
|
int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info)
|
||||||
{
|
{
|
||||||
return -ENOSYS;
|
memset(info, 0, sizeof(*info));
|
||||||
|
|
||||||
|
info->type = BT_CONN_TYPE_LE;
|
||||||
|
info->le.dst = &conn->dst;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int bt_conn_le_param_update(struct bt_conn *conn,
|
int bt_conn_le_param_update(struct bt_conn *conn,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue