Bluetooth: Fix reason code used for rejecting SCO connections
authorFrédéric Dalleau <frederic.dalleau@collabora.co.uk>
Thu, 8 Sep 2016 10:00:11 +0000 (12:00 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Sep 2016 15:55:16 +0000 (17:55 +0200)
commitf0899f1eb865cd27b7ae113b052041b17ea57f7a
tree23cb524817839470e75d2ac0d55cd838e7c3e02c
parentfb0028e873f0393fb40c776ee545bed36c5c0a15
Bluetooth: Fix reason code used for rejecting SCO connections

A comment in the code states that SCO connection should be rejected
with the proper error value between 0xd-0xf. The code uses
HCI_ERROR_REMOTE_LOW_RESOURCES which is 0x14.

This led to following error:
< HCI Command: Reject Synchronous Co.. (0x01|0x002a) plen 7
        Address: 34:51:C9:EF:02:CA (Apple, Inc.)
        Reason: Remote Device Terminated due to Low Resources (0x14)
> HCI Event: Command Status (0x0f) plen 4
      Reject Synchronous Connection Request (0x01|0x002a) ncmd 1
        Status: Invalid HCI Command Parameters (0x12)

Instead make use of HCI_ERROR_REJ_LIMITED_RESOURCES which is 0xd.

Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c
This page took 0.024165 seconds and 5 git commands to generate.