Skip to content

Commit

Permalink
Bluetooth: 6lowpan: Remove redundant (and incorrect) MPS assignments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hedberg authored and Marcel Holtmann committed Oct 8, 2015
1 parent 301de2c commit 5d0fd77
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/bluetooth/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d0fd77

Please sign in to comment.