]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Bluetooth: Select Basic Mode as default for SOCK_SEQPACKET
authorGustavo F. Padovan <gustavo@las.ic.unicamp.br>
Tue, 29 Sep 2009 04:42:23 +0000 (01:42 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Nov 2009 00:31:16 +0000 (01:31 +0100)
The default mode for SOCK_SEQPACKET is Basic Mode. So when no
mode has been specified, Basic Mode shall be used.

This is important for current application to keep working as
expected and not cause a regression.

Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c

index 77e9fb130adb4bd6475c53a481f6e176bf5ec240..076caa10d2f6ce9ad0625dc93734921069b07c68 100644 (file)
@@ -2205,7 +2205,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);