Diff between 5e4460249a6f00b2ae62894e45f1e515916c87d2 and 5d1f47f1b48c68477f8830e83293afef05142629

Changed Files

File Additions Deletions Status
src/attrib-server.c +1 -0 modified

Full Patch

diff --git a/src/attrib-server.c b/src/attrib-server.c
index 3954f99..5adbf92 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -886,6 +886,7 @@ static uint16_t mtu_exchange(struct gatt_channel *channel, uint16_t mtu,
 					ATT_ECODE_UNLIKELY, pdu, len);
 
 	channel->mtu = MIN(mtu, imtu);
+	g_attrib_set_mtu(channel->attrib, channel->mtu);
 
 	return enc_mtu_resp(imtu, pdu, len);
 }