mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-15 22:20:59 +00:00
l2cap: use address type from incoming cbm connection request instead of LE Random
This commit is contained in:
parent
d24641498b
commit
e6d334abdc
@ -4472,7 +4472,7 @@ static int l2cap_le_signaling_handler_dispatch(hci_con_handle_t handle, uint8_t
|
||||
|
||||
// allocate channel
|
||||
channel = l2cap_create_channel_entry(service->packet_handler, L2CAP_CHANNEL_TYPE_CHANNEL_CBM, connection->address,
|
||||
BD_ADDR_TYPE_LE_RANDOM, le_psm, service->mtu, service->required_security_level);
|
||||
connection->address_type, le_psm, service->mtu, service->required_security_level);
|
||||
if (!channel){
|
||||
l2cap_register_signaling_response(handle, LE_CREDIT_BASED_CONNECTION_REQUEST, sig_id, source_cid, L2CAP_CBM_CONNECTION_RESULT_NO_RESOURCES_AVAILABLE);
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user