Bluetooth: add the connection parameters to le conn info

Applications that need it can retrieve the connection
parameters at any time, connected callback for example,
and eventually handle the connection update callback or
not, this gives maximum flexibility for handling these
parameters and requesting change.

Change-Id: Iba7d30ade045875ebc721fd332e031d9008e248c
Signed-off-by: Louis Caron <louis.caron@intel.com>
This commit is contained in:
Louis Caron 2016-02-03 10:32:23 +01:00 committed by Anas Nashif
commit bcb61c6630
2 changed files with 6 additions and 0 deletions

View file

@ -799,6 +799,9 @@ int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info)
info->le.src = &conn->le.resp_addr;
info->le.dst = &conn->le.init_addr;
}
info->le.interval = conn->le.interval;
info->le.latency = conn->le.latency;
info->le.timeout = conn->le.timeout;
return 0;
#if defined(CONFIG_BLUETOOTH_BREDR)
case BT_CONN_TYPE_BR: