From 90a28bde02603dce708173072a42bc0254d720a4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 13 Nov 2015 21:16:30 +0100 Subject: [PATCH] use l2cap_create_channel instead of deprecated l2cap_create_channel_internal --- src/classic/bnep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/classic/bnep.c b/src/classic/bnep.c index 550949c55..57f6b2c3d 100644 --- a/src/classic/bnep.c +++ b/src/classic/bnep.c @@ -1568,8 +1568,10 @@ int bnep_connect(void * connection, bd_addr_t addr, uint16_t l2cap_psm, uint16_t channel->uuid_source = uuid_src; channel->uuid_dest = uuid_dest; - l2cap_create_channel_internal(connection, bnep_packet_handler, addr, l2cap_psm, l2cap_max_mtu()); - + uint8_t status = l2cap_create_channel(bnep_packet_handler, addr, l2cap_psm, l2cap_max_mtu(), NULL); + if (status){ + return -1; + } return 0; }