Parent: 4a559985cb60d95ae51a6ff8dc8100826a9bffe7
Author: Bruna Moreira <bruna.moreira@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@nokia.com>
Date: 2011-03-10 11:08:06
Tree: a65f6ed9a37a8b2f09d8cd151e94e60166988db2
Fix MTU value used on MTU exchange response ATT_MTU_RESP shall send the original MTU value prior to the exchange. If client sends an invalid value, the server shall use the ATT_DEFAULT_LE_MTU value. This operation is not supported in BR/EDR, so if any client sends this request it will be ignored by server and it will reply with "Request not supported". For BR/EDR, the MTU is limited to ATT_MAX_MTU (currently 256). This avoids allocating a big buffer when most ATT PDUs are small. Note: the kernel currently limits the minimum MTU to 48, regardless of transport type. This limit is valid only for BR/EDR, for LE the minimum is 23. This bug will be fixed, but it does not affect the outgoing MTU for new created LE sockets, which are correctly set to 23.
Diffstat
| M | src/attrib-server.c | | | 27 | +++++++++++++++++++++++- - - - |
1 files changed, 23 insertions(+), 4 deletions(-)