Bluetooth: BR/EDR: Rename BT_CONN_TYPE_BREDR

To conform to API convention rename BT_CONN_TYPE_BREDR to BT_CONN_TYPE_BR.
Updates stack code so far uses it.

Change-Id: Ia759ef68bbdb232e3b0992740e0536d310e19010
Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
Arkadiusz Lichwa 2015-12-07 10:03:05 +01:00 committed by Anas Nashif
commit db57e259a7
3 changed files with 4 additions and 4 deletions

View file

@ -102,7 +102,7 @@ const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn);
enum {
BT_CONN_TYPE_LE, /** LE Connection Type */
#if defined(CONFIG_BLUETOOTH_BREDR)
BT_CONN_TYPE_BREDR, /** BR/EDR Connection Type */
BT_CONN_TYPE_BR, /** BR/EDR Connection Type */
#endif
};

View file

@ -384,7 +384,7 @@ fail:
static inline uint16_t conn_mtu(struct bt_conn *conn)
{
#if defined(CONFIG_BLUETOOTH_BREDR)
if (conn->type == BT_CONN_TYPE_BREDR || !bt_dev.le.mtu) {
if (conn->type == BT_CONN_TYPE_BR || !bt_dev.le.mtu) {
return bt_dev.br.mtu;
}
#endif /* CONFIG_BLUETOOTH_BREDR */
@ -543,7 +543,7 @@ struct bt_conn *bt_conn_add_br(const bt_addr_t *peer)
}
bt_addr_copy(&conn->br.dst, peer);
conn->type = BT_CONN_TYPE_BREDR;
conn->type = BT_CONN_TYPE_BR;
return conn;
}

View file

@ -155,7 +155,7 @@ int bt_conn_init(void);
static inline struct nano_sem *bt_conn_get_pkts(struct bt_conn *conn)
{
#if defined(CONFIG_BLUETOOTH_BREDR)
if (conn->type == BT_CONN_TYPE_BREDR || !bt_dev.le.mtu) {
if (conn->type == BT_CONN_TYPE_BR || !bt_dev.le.mtu) {
return &bt_dev.br.pkts;
}
#endif /* CONFIG_BLUETOOTH_BREDR */