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: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
fe806dcede
commit
301de2cb6a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue