Bluetooth: 6lowpan: Fix imtu & omtu values
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 6 Oct 2015 10:03:19 +0000 (13:03 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Oct 2015 08:43:52 +0000 (10:43 +0200)
The omtu value is determined by the remote peer so there's no point in
trying to hard-code it to any value. The IPSP specification otoh gives
a more reasonable value for the imtu, i.e. 1280.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c

index 131e79cde3504f161e38f7bd5797f2de06eb63d1..3e20f7a60d6185f42000b2dfc98dd32dfa54d785 100644 (file)
@@ -775,8 +775,7 @@ static struct l2cap_chan *chan_create(void)
 
        chan->chan_type = L2CAP_CHAN_CONN_ORIENTED;
        chan->mode = L2CAP_MODE_LE_FLOWCTL;
-       chan->omtu = 65535;
-       chan->imtu = chan->omtu;
+       chan->imtu = 1280;
 
        return chan;
 }