From: Johan Hedberg Date: Thu, 28 Apr 2011 18:28:57 +0000 (-0700) Subject: Bluetooth: Fix reason code for pairing rejection X-Git-Tag: v3.0~349^2~16^2~94^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be77159c3f37e73a18ecc5c1eab3c67e07c6ce22;p=platform%2Fkernel%2Flinux-amlogic.git Bluetooth: Fix reason code for pairing rejection "Pairing not allowed" is 0x18 and not 0x16. Signed-off-by: Johan Hedberg Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 29310c7..d535ea4 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -2462,7 +2462,7 @@ static inline void hci_io_capa_request_evt(struct hci_dev *hdev, struct sk_buff struct hci_cp_io_capability_neg_reply cp; bacpy(&cp.bdaddr, &ev->bdaddr); - cp.reason = 0x16; /* Pairing not allowed */ + cp.reason = 0x18; /* Pairing not allowed */ hci_send_cmd(hdev, HCI_OP_IO_CAPABILITY_NEG_REPLY, sizeof(cp), &cp);