Bluetooth: Don't send ERTM configuration option when disabled
Subsystems (2)
Marcel Holtmann
maintainerRFC 1/1 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 <[email protected]>
--- net/bluetooth/l2cap_core.c | 3 +++ 1 file changed, 3 insertions(+)
net/bluetooth/l2cap_core.c +3 -0
@@ -3233,6 +3233,9 @@ done: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 ;
Signature · 1 line
1.9.3
Johan Hedberg
AppliedHi Marcel,
Quoted 7 lines · Marcel Holtmann
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 <[email protected]>--- net/bluetooth/l2cap_core.c | 3 +++ 1 file changed, 3 insertions(+)
Applied to bluetooth-next. Thanks.
Johan