Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 301de2cb authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

Bluetooth: 6lowpan: Fix imtu & omtu values



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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Acked-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent fe806dce
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -775,8 +775,7 @@ static struct l2cap_chan *chan_create(void)


	chan->chan_type = L2CAP_CHAN_CONN_ORIENTED;
	chan->chan_type = L2CAP_CHAN_CONN_ORIENTED;
	chan->mode = L2CAP_MODE_LE_FLOWCTL;
	chan->mode = L2CAP_MODE_LE_FLOWCTL;
	chan->omtu = 65535;
	chan->imtu = 1280;
	chan->imtu = chan->omtu;


	return chan;
	return chan;
}
}