Bluetooth: Update bt_conn_get_info
Allow to query for connection info in every state. For BR/EDR connection destination address is valid in every state. For LE addresses are initialized to BT_ADDR_LE_ANY until connection is completed. Change-Id: I0f0abcd0ff0119a82ef8eeb40c8ee3af25eb89b4 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
1a54c49ceb
commit
7c7b0653bb
1 changed files with 0 additions and 4 deletions
|
@ -781,10 +781,6 @@ 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)
|
||||
{
|
||||
if (conn->state != BT_CONN_CONNECTED) {
|
||||
return -ENOTCONN;
|
||||
}
|
||||
|
||||
info->type = conn->type;
|
||||
|
||||
switch (conn->type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue