Bluetooth: Add connection role to bt_conn_info
This can be useful for both LE and BR/EDR connections so it sits outside of those specific structs. The values are intentionally matching the HCI values so for the HCI case we can just do a direct assignment. Change-Id: Id78d304bb61e5fd941f2c35351758c1eecc6ab6a Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
9632d46ae7
commit
500513b5f0
2 changed files with 11 additions and 0 deletions
|
@ -802,6 +802,7 @@ const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn)
|
|||
int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info)
|
||||
{
|
||||
info->type = conn->type;
|
||||
info->role = conn->role;
|
||||
|
||||
switch (conn->type) {
|
||||
case BT_CONN_TYPE_LE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue