Bluetooth: 6lowpan: Remove redundant (and incorrect) MPS assignments
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 6 Oct 2015 10:03:20 +0000 (13:03 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Oct 2015 08:43:52 +0000 (10:43 +0200)
The L2CAP core code already sets the local MPS to a sane value. The
remote MPS value otoh comes from the remote side so there's no point
in trying to hard-code it to any value.

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 3e20f7a..3d951ab 100644 (file)
@@ -788,9 +788,6 @@ static struct l2cap_chan *chan_open(struct l2cap_chan *pchan)
        if (!chan)
                return NULL;
 
-       chan->remote_mps = chan->omtu;
-       chan->mps = chan->omtu;
-
        chan->state = BT_CONNECTED;
 
        return chan;