l2cap: emit ecbm closed on hci disconnect

This commit is contained in:
Matthias Ringwald 2021-11-20 23:22:23 +01:00
parent f4e7dc8e95
commit 9a98c7803e
3 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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})

View File

@ -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