From d458f1e7a2ed720237f44a1d7637cb00a713fccc Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Tue, 20 Mar 2018 17:06:33 +0100 Subject: [PATCH] Bluetooth: L2CAP: Use BR definition on connection success This fixes BR L2CAP to use BT_L2CAP_BR_SUCCESS. Signed-off-by: Mariusz Skamra --- subsys/bluetooth/host/l2cap_br.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/host/l2cap_br.c b/subsys/bluetooth/host/l2cap_br.c index ee07a52d2a5..1f1a1fcb859 100644 --- a/subsys/bluetooth/host/l2cap_br.c +++ b/subsys/bluetooth/host/l2cap_br.c @@ -757,7 +757,7 @@ static void l2cap_br_conn_req(struct bt_l2cap_br *l2cap, u8_t ident, /* Reply on connection request as acceptor */ l2cap_br_conn_req_reply(chan, result); - if (result != BT_L2CAP_SUCCESS) { + if (result != BT_L2CAP_BR_SUCCESS) { /* Disconnect link when security rules were violated */ if (result == BT_L2CAP_BR_ERR_SEC_BLOCK) { bt_conn_disconnect(conn, @@ -1440,7 +1440,7 @@ static void l2cap_br_conn_pend(struct bt_l2cap_chan *chan, u8_t status) * For incoming connection state send confirming outstanding * response and initiate configuration request. */ - if (l2cap_br_conn_req_reply(chan, BT_L2CAP_SUCCESS) == 0) { + if (l2cap_br_conn_req_reply(chan, BT_L2CAP_BR_SUCCESS) == 0) { bt_l2cap_chan_set_state(chan, BT_L2CAP_CONFIG); /* * Initialize config request since remote needs to know