mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
l2cap: emit ecbm closed on hci disconnect
This commit is contained in:
parent
f4e7dc8e95
commit
9a98c7803e
@ -2844,7 +2844,7 @@ static void l2cap_handle_disconnection_complete(hci_con_handle_t handle){
|
||||
l2cap_ecbm_emit_reconfigure_complete(channel, 0xffff);
|
||||
break;
|
||||
default:
|
||||
l2cap_emit_simple_event_with_cid(channel, L2CAP_EVENT_ECBM_CHANNEL_OPENED);
|
||||
l2cap_emit_simple_event_with_cid(channel, L2CAP_EVENT_ECBM_CHANNEL_CLOSED);
|
||||
break;
|
||||
}
|
||||
l2cap_free_channel_entry(channel);
|
||||
|
@ -31,6 +31,10 @@ set(SOURCES
|
||||
../../platform/embedded/btstack_run_loop_embedded.c
|
||||
)
|
||||
|
||||
# Enable ASAN
|
||||
add_compile_options( -g -fsanitize=address)
|
||||
add_link_options( -fsanitize=address)
|
||||
|
||||
# create static lib
|
||||
add_library(btstack STATIC ${SOURCES})
|
||||
|
||||
|
@ -75,7 +75,7 @@ build-asan/l2cap_ecbm_test: ${COMMON_OBJ_ASAN} build-asan/l2cap_ecbm_test.o | bu
|
||||
|
||||
test: all
|
||||
build-asan/l2cap_cbm_test
|
||||
# build-asan/l2cap_ecbm_test
|
||||
build-asan/l2cap_ecbm_test
|
||||
|
||||
coverage: all
|
||||
rm -f build-coverage/*.gcda
|
||||
|
Loading…
x
Reference in New Issue
Block a user