From bb68ac6c0bdff789c5c7960f6d3ba5a72d4eec5e Mon Sep 17 00:00:00 2001 From: Theis Blickfeldt Date: Tue, 27 Nov 2018 08:47:39 +0100 Subject: [PATCH] bluetooth: Updated comment in conn.h to clarify CB PoV In conn.h the comments on src/dst in bt_conn_le_info and bt_conn_br_info does not clearly state the point of view. src could both be perceived as the connections point of view (src = local address) or the call-back where the structs are used point of view (src = remote address). The comments about src/dst has been made more clear. Signed-off-by: Theis Blickfeldt --- include/bluetooth/conn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 7e119114e4b..921d1ab930a 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -124,8 +124,8 @@ enum { /** LE Connection Info Structure */ struct bt_conn_le_info { - const bt_addr_le_t *src; /** Source Address */ - const bt_addr_le_t *dst; /** Destination Address */ + const bt_addr_le_t *src; /** Source (Local) Address */ + const bt_addr_le_t *dst; /** Destination (Remote) Address */ u16_t interval; /** Connection interval */ u16_t latency; /** Connection slave latency */ u16_t timeout; /** Connection supervision timeout */ @@ -133,7 +133,7 @@ struct bt_conn_le_info { /** BR/EDR Connection Info Structure */ struct bt_conn_br_info { - const bt_addr_t *dst; /** Destination BR/EDR address */ + const bt_addr_t *dst; /** Destination (Remote) BR/EDR address */ }; /** Connection role (master or slave) */