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:
Szymon Janc 2016-01-11 17:18:23 +01:00 committed by Anas Nashif
commit 7c7b0653bb

View file

@ -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) {