From f7fbdf40461929127b2f49731ef9c3a5552edc8a Mon Sep 17 00:00:00 2001 From: Hemant Gupta Date: Mon, 16 Jan 2012 13:34:29 +0530 Subject: [PATCH] --- yaml --- r: 290911 b: refs/heads/master c: 7a7f1e7c857959f5298020969741e389f21edbae h: refs/heads/master i: 290909: fd97a50f9879fe7de158046e6a695af0c1fb661c 290907: 0dc1f56ecbca87dc4243cec2280b3b31e0456cd3 290903: 4964dbe583acb7b57186731a16e2ee29c5be7e4a 290895: 37c2fd3010746a97494ea9f91dafb3ae89e5aa8c 290879: 7835871ae4aa815b3df02a5d7aaa03c418b7a450 v: v3 --- [refs] | 2 +- trunk/net/bluetooth/hci_event.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 621e71bfa963..479172099105 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b7d05bad1c10a363b6b99f66ac1fa76b6892e618 +refs/heads/master: 7a7f1e7c857959f5298020969741e389f21edbae diff --git a/trunk/net/bluetooth/hci_event.c b/trunk/net/bluetooth/hci_event.c index 6fb9016652b7..041a35eb25c6 100644 --- a/trunk/net/bluetooth/hci_event.c +++ b/trunk/net/bluetooth/hci_event.c @@ -2965,7 +2965,10 @@ static inline void hci_io_capa_request_evt(struct hci_dev *hdev, struct sk_buff struct hci_cp_io_capability_reply cp; bacpy(&cp.bdaddr, &ev->bdaddr); - cp.capability = conn->io_capability; + /* Change the IO capability from KeyboardDisplay + * to DisplayYesNo as it is not supported by BT spec. */ + cp.capability = (conn->io_capability == 0x04) ? + 0x01 : conn->io_capability; conn->auth_type = hci_get_auth_req(conn); cp.authentication = conn->auth_type;