mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-24 06:02:43 +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);
|
l2cap_ecbm_emit_reconfigure_complete(channel, 0xffff);
|
||||||
break;
|
break;
|
||||||
default:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
l2cap_free_channel_entry(channel);
|
l2cap_free_channel_entry(channel);
|
||||||
|
@ -31,6 +31,10 @@ set(SOURCES
|
|||||||
../../platform/embedded/btstack_run_loop_embedded.c
|
../../platform/embedded/btstack_run_loop_embedded.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Enable ASAN
|
||||||
|
add_compile_options( -g -fsanitize=address)
|
||||||
|
add_link_options( -fsanitize=address)
|
||||||
|
|
||||||
# create static lib
|
# create static lib
|
||||||
add_library(btstack STATIC ${SOURCES})
|
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
|
test: all
|
||||||
build-asan/l2cap_cbm_test
|
build-asan/l2cap_cbm_test
|
||||||
# build-asan/l2cap_ecbm_test
|
build-asan/l2cap_ecbm_test
|
||||||
|
|
||||||
coverage: all
|
coverage: all
|
||||||
rm -f build-coverage/*.gcda
|
rm -f build-coverage/*.gcda
|
||||||
|
Loading…
x
Reference in New Issue
Block a user