mirror of https://gitee.com/openkylin/linux.git
Bluetooth: Don't send ERTM configuration option when disabled
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>
This commit is contained in:
parent
91a668b056
commit
6fea7ad1d3
|
@ -3234,6 +3234,9 @@ static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data)
|
||||||
|
|
||||||
switch (chan->mode) {
|
switch (chan->mode) {
|
||||||
case L2CAP_MODE_BASIC:
|
case L2CAP_MODE_BASIC:
|
||||||
|
if (disable_ertm)
|
||||||
|
break;
|
||||||
|
|
||||||
if (!(chan->conn->feat_mask & L2CAP_FEAT_ERTM) &&
|
if (!(chan->conn->feat_mask & L2CAP_FEAT_ERTM) &&
|
||||||
!(chan->conn->feat_mask & L2CAP_FEAT_STREAMING))
|
!(chan->conn->feat_mask & L2CAP_FEAT_STREAMING))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue