mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 06:41:17 +00:00
use att_connection.mtu instead of calling l2cap_max_mtu (for better testing)
This commit is contained in:
parent
a985b2fd2e
commit
352208daaa
@ -126,7 +126,7 @@ static void att_event_packet_handler (uint8_t packet_type, uint16_t channel, uin
|
|||||||
bt_flip_addr(att_client_address, &packet[8]);
|
bt_flip_addr(att_client_address, &packet[8]);
|
||||||
// reset connection properties
|
// reset connection properties
|
||||||
att_connection.con_handle = READ_BT_16(packet, 4);
|
att_connection.con_handle = READ_BT_16(packet, 4);
|
||||||
att_connection.mtu = ATT_DEFAULT_MTU;
|
att_connection.mtu = l2cap_max_mtu();
|
||||||
att_connection.encryption_key_size = 0;
|
att_connection.encryption_key_size = 0;
|
||||||
att_connection.authenticated = 0;
|
att_connection.authenticated = 0;
|
||||||
att_connection.authorized = 0;
|
att_connection.authorized = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user