mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
l2cap: limit mtu in conf resp to remote mtu - regression from 6dca2a0c
This commit is contained in:
parent
6b99230fe8
commit
3271797891
@ -1157,7 +1157,7 @@ static uint16_t l2cap_setup_options_response(l2cap_channel_t * channel, uint8_t
|
||||
return l2cap_setup_options_ertm(channel, config_options);
|
||||
}
|
||||
#endif
|
||||
uint16_t mtu = channel->local_mtu;
|
||||
uint16_t mtu = btstack_min(channel->local_mtu, channel->remote_mtu);
|
||||
return l2cap_setup_options_mtu(config_options, mtu);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user