summaryrefslogtreecommitdiff
path: root/net/bluetooth/bnep/sock.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2015-04-03 13:14:55 +0300
committerMarcel Holtmann <marcel@holtmann.org>2015-04-04 00:21:34 +0300
commit836a061b19d7b4e2e5e05c2a87a366e33127cf88 (patch)
tree3f4d11ff3177d4f94832470dc0660e66dd027ad2 /net/bluetooth/bnep/sock.c
parentbf8b9a9cb77b14e37a8bc925be5db7bfd54d69a8 (diff)
downloadlinux-836a061b19d7b4e2e5e05c2a87a366e33127cf88.tar.xz
Bluetooth: bnep: Handle BNEP connection setup request
With this patch kernel will be able to handle setup request. This is needed if we would like to handle control mesages with extension headers. User space will be only resposible for reading setup data and checking if scenario is conformance to specification (dst and src device bnep role). In case of new user space, setup data must be leaved(peek msg) on queue. New bnep session will be responsible for handling this data. Signed-off-by: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/bnep/sock.c')
-rw-r--r--net/bluetooth/bnep/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c
index 5766e6b66dbb..bde2bdd9e929 100644
--- a/net/bluetooth/bnep/sock.c
+++ b/net/bluetooth/bnep/sock.c
@@ -57,7 +57,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
struct bnep_conninfo ci;
struct socket *nsock;
void __user *argp = (void __user *)arg;
- __u32 supp_feat = 0;
+ __u32 supp_feat = BIT(BNEP_SETUP_RESPONSE);
int err;
BT_DBG("cmd %x arg %lx", cmd, arg);