honor MTU of registered services

This commit is contained in:
matthias.ringwald@gmail.com 2011-08-18 16:07:56 +00:00
parent feae72603a
commit 0b8164ba67

View File

@ -296,6 +296,9 @@ static void rfcomm_channel_initialize(rfcomm_channel_t *channel, rfcomm_multiple
// incoming connection
channel->outgoing = 0;
channel->dlci = (server_channel << 1) | multiplexer->outgoing;
if (channel->max_frame_size > service->max_frame_size) {
channel->max_frame_size = service->max_frame_size;
}
} else {
// outgoing connection
channel->outgoing = 1;