Skip to contentSkip to conversation

Bluetooth: Don't send ERTM configuration option when disabled

RFC Applied Marcel Holtmann 2 participants 2 messages Jul 9, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

RFC 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.

---
 net/bluetooth/l2cap_core.c | 3 +++
 1 file changed, 3 insertions(+)
net/bluetooth/l2cap_core.c +3 -0
index bf379a379fa0..87eb4b37e243 100644
@@ -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
#1 lore raw

Hi 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.

---
 net/bluetooth/l2cap_core.c | 3 +++
 1 file changed, 3 insertions(+)

Applied to bluetooth-next. Thanks.

Johan