linux-sg2042/include/net/bluetooth
Johan Hedberg d41c15cf95 Bluetooth: Fix reason code used for rejecting SCO connections
The core specification defines valid values for the
HCI_Reject_Synchronous_Connection_Request command to be 0x0D-0x0F. So
far the code has been using HCI_ERROR_REMOTE_USER_TERM (0x13) which is
not a valid value and is therefore being rejected by some controllers:

 > HCI Event: Connect Request (0x04) plen 10
	bdaddr 40:6F:2A:6A:E5:E0 class 0x000000 type eSCO
 < HCI Command: Reject Synchronous Connection (0x01|0x002a) plen 7
	bdaddr 40:6F:2A:6A:E5:E0 reason 0x13
	Reason: Remote User Terminated Connection
 > HCI Event: Command Status (0x0f) plen 4
	Reject Synchronous Connection (0x01|0x002a) status 0x12 ncmd 1
	Error: Invalid HCI Command Parameters

This patch introduces a new define for a value from the valid range
(0x0d == Connection Rejected Due To Limited Resources) and uses it
instead for rejecting incoming connections.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-09-24 14:03:32 +02:00
..
bluetooth.h Bluetooth: Convert bt_<level> logging functions to return void 2014-09-24 09:40:08 +02:00
hci.h Bluetooth: Fix reason code used for rejecting SCO connections 2014-09-24 14:03:32 +02:00
hci_core.h Bluetooth: Remove exported hci_recv_fragment function 2014-09-17 10:23:03 +03:00
hci_mon.h Bluetooth: Fix coding style in all .h files 2012-03-07 00:04:25 -03:00
hci_sock.h Bluetooth: Move HCI socket definitions into its own header file 2014-07-11 13:53:04 +03:00
l2cap.h Bluetooth: Move identity address update behind a workqueue 2014-09-08 19:07:55 +02:00
mgmt.h Bluetooth: Rename pairable mgmt setting to bondable 2014-07-30 19:28:41 +02:00
rfcomm.h Bluetooth: Convert RFCOMM spinlocks into mutexes 2014-05-05 19:25:06 -07:00
sco.h Bluetooth: Move SCO timeout constants into net/bluetooth/sco.c 2014-07-11 13:58:58 +03:00