From: Gustavo F. Padovan Date: Tue, 29 Sep 2009 04:42:23 +0000 (-0300) Subject: Bluetooth: Select Basic Mode as default for SOCK_SEQPACKET X-Git-Tag: Ubuntu-5.2.0-15.16~27124^2~16^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a0e55a32afc2130e5ae506755e4b8eb42a23b568;p=mirror_ubuntu-eoan-kernel.git Bluetooth: Select Basic Mode as default for SOCK_SEQPACKET 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 Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 77e9fb130adb..076caa10d2f6 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -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);