diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2012-10-10 20:34:59 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-11 08:35:06 +0200 |
commit | a2e4b27451e47c5a6da6f640b5ea9cc2ec1f8804 (patch) | |
tree | 350ece7e4a07c253cc5478920a07839086bfdfa2 /src | |
parent | 4c3dec8abfde7e16494b552a4a777ef28866dc40 (diff) |
attrib: Remove all the usages of ATT_MAX_MTU
This "define" was bogus for two reasons: 1. There's no concept
of maximum MTU in the ATT level; 2. It was used as a maximum attribute
value length.
Diffstat (limited to 'src')
-rw-r--r-- | src/attrib-server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/attrib-server.c b/src/attrib-server.c index 76a32af7..ec4ecc36 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -907,11 +907,12 @@ static void channel_handler(const uint8_t *ipdu, uint16_t len, gpointer user_data) { struct gatt_channel *channel = user_data; - uint8_t opdu[channel->mtu], value[ATT_MAX_MTU]; + uint8_t opdu[channel->mtu]; uint16_t length, start, end, mtu, offset; bt_uuid_t uuid; uint8_t status = 0; size_t vlen; + uint8_t *value = g_attrib_get_buffer(channel->attrib, &vlen); DBG("op 0x%02x", ipdu[0]); |