Parent: e3598c492e91405dacb91a18020b29b543f39995
Author: Andre Guedes <andre.guedes@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-06-07 04:27:32
Tree: e0639b0af2fd71ff1b45e3881fc54e1e93fabbbf
attrib-server: Fix mtu_exchange If the client requests an ATT_MTU less than the minimum ATT_MTU, the server should send an Error Response message with Request Not Supported code. According to GATT spec, the server shall respond to Exchange MTU Requests messages with an Exchange MTU Response with the Server Rx MTU parameter set to the maximum MTU that this server can receive. Thus, we should get L2CAP imtu value in order to properly send the Exchange MTU Response message. Additionally, we should not change the L2CAP ATT fixed channel MTU. bt_io_set call will always fail since we are not supposed to change L2CAP MTU after connection is established.
Diffstat
| M | src/attrib-server.c | | | 23 | ++++++++++++++++- - - - - - - |
1 files changed, 16 insertions(+), 7 deletions(-)