diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 33875d3524f..e60b0f44b68 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -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 }; diff --git a/net/bluetooth/conn.c b/net/bluetooth/conn.c index 223c574e048..df826d5e5e8 100644 --- a/net/bluetooth/conn.c +++ b/net/bluetooth/conn.c @@ -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; } diff --git a/net/bluetooth/conn_internal.h b/net/bluetooth/conn_internal.h index 13b1cb392b4..3bd4fb88ea0 100644 --- a/net/bluetooth/conn_internal.h +++ b/net/bluetooth/conn_internal.h @@ -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 */