All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] Bluetooth: Put Basic Mode to be the default when using SOCK_SEQPACKET
@ 2009-09-29  4:42 Gustavo F. Padovan
  2009-09-29  4:42 ` [PATCH 2/7] Bluetooth: Initialize variables and timers for both channel's sides Gustavo F. Padovan
  2009-09-29  5:00 ` [PATCH 1/7] Bluetooth: Put Basic Mode to be the default when using SOCK_SEQPACKET Marcel Holtmann
  0 siblings, 2 replies; 16+ messages in thread
From: Gustavo F. Padovan @ 2009-09-29  4:42 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: marcel, gustavo

We can't break userspace app that will continue using SOCK_SEQPACKET.
The default mode for SOCK_SEQPACKET is Basic Mode, so when no one
specifies the mode and sk_type is SOCK_SEQPACKET Basic Mode shall be used.

Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
---
 net/bluetooth/l2cap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index b030125..9d586fb 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -2202,7 +2202,7 @@ static int l2cap_build_conf_req(struct sock *sk, void *data)
 {
 	struct l2cap_pinfo *pi = l2cap_pi(sk);
 	struct l2cap_conf_req *req = data;
-	struct l2cap_conf_rfc rfc = { .mode = L2CAP_MODE_ERTM };
+	struct l2cap_conf_rfc rfc = { .mode = L2CAP_MODE_BASIC };
 	void *ptr = req->data;
 
 	BT_DBG("sk %p", sk);
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-09-29  5:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-29  4:42 [PATCH 1/7] Bluetooth: Put Basic Mode to be the default when using SOCK_SEQPACKET Gustavo F. Padovan
2009-09-29  4:42 ` [PATCH 2/7] Bluetooth: Initialize variables and timers for both channel's sides Gustavo F. Padovan
2009-09-29  4:42   ` [PATCH 3/7] Bluetooth: Fix unset of SrejActioned flag Gustavo F. Padovan
2009-09-29  4:42     ` [PATCH 4/7] Bluetooth: send ReqSeq on I-frames Gustavo F. Padovan
2009-09-29  4:42       ` [PATCH 5/7] Bluetooth: Implement RejActioned flag Gustavo F. Padovan
2009-09-29  4:42         ` [PATCH 6/7] Bluetooth: Fix ReqSeq value on sending I-frames Gustavo F. Padovan
2009-09-29  4:42           ` [PATCH 7/7] Bluetooth: Send ReqSeq on 'SendRRorRNR' function Gustavo F. Padovan
2009-09-29  5:00             ` Marcel Holtmann
2009-09-29  4:59           ` [PATCH 6/7] Bluetooth: Fix ReqSeq value on sending I-frames Marcel Holtmann
2009-09-29  4:59         ` [PATCH 5/7] Bluetooth: Implement RejActioned flag Marcel Holtmann
2009-09-29  4:58       ` [PATCH 4/7] Bluetooth: send ReqSeq on I-frames Marcel Holtmann
2009-09-29  4:57     ` [PATCH 3/7] Bluetooth: Fix unset of SrejActioned flag Marcel Holtmann
2009-09-29  4:55   ` [PATCH 2/7] Bluetooth: Initialize variables and timers for both channel's sides Marcel Holtmann
2009-09-29  5:15     ` Gustavo F. Padovan
2009-09-29  5:18       ` Marcel Holtmann
2009-09-29  5:00 ` [PATCH 1/7] Bluetooth: Put Basic Mode to be the default when using SOCK_SEQPACKET Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.