Bluetooth: Add bt_conn_get_dst function

This function allows to pick connection destination address.

Change-Id: I3e4959eec00905c64de3d8b9ef810b613c2e9f91
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h
index 36dc2da..1704547 100644
--- a/include/bluetooth/conn.h
+++ b/include/bluetooth/conn.h
@@ -69,6 +69,14 @@
  */
 struct bt_conn *bt_conn_lookup_addr_le(const bt_addr_le_t *peer);
 
+/*! @brief Get destination (peer) address of a connection.
+ *
+ *  @param conn Connection object.
+ *
+ *  @return Destination address.
+ */
+const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn);
+
 /*! Connection callback structure */
 struct bt_conn_cb {
 	void (*connected)(struct bt_conn *conn);
diff --git a/net/bluetooth/conn.c b/net/bluetooth/conn.c
index 7dda11c..4ea726d 100644
--- a/net/bluetooth/conn.c
+++ b/net/bluetooth/conn.c
@@ -351,3 +351,8 @@
 
 	conn->handle = 0;
 }
+
+const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn)
+{
+	return &conn->dst;
+}