Skip to content

Commit

Permalink
Bluetooth: Don't send ERTM configuration option when disabled
Browse files Browse the repository at this point in the history
When ERTM support is disabled, then do not even send ERTM configuration
option even if the remote side supports it.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Jul 9, 2014
1 parent 91a668b commit 6fea7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3234,6 +3234,9 @@ static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data)

switch (chan->mode) {
case L2CAP_MODE_BASIC:
if (disable_ertm)
break;

if (!(chan->conn->feat_mask & L2CAP_FEAT_ERTM) &&
!(chan->conn->feat_mask & L2CAP_FEAT_STREAMING))
break;
Expand Down

0 comments on commit 6fea7ad

Please sign in to comment.