android_kernel_xiaomi_sm8350/net/bluetooth
Mikel Astiz f0d6a0ea33 Bluetooth: mgmt: Add device disconnect reason
MGMT_EV_DEVICE_DISCONNECTED will now expose the disconnection reason to
userland, distinguishing four possible values:

	0x00	Reason not known or unspecified
	0x01	Connection timeout
	0x02	Connection terminated by local host
	0x03	Connection terminated by remote host

Note that the local/remote distinction just determines which side
terminated the low-level connection, regardless of the disconnection of
the higher-level profiles.

This can sometimes be misleading and thus must be used with care. For
example, some hardware combinations would report a locally initiated
disconnection even if the user turned Bluetooth off in the remote side.

Signed-off-by: Mikel Astiz <mikel.astiz@bmw-carit.de>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
2012-08-21 14:54:40 -03:00
..
bnep Bluetooth: Added /proc/net/bnep via bt_procfs_init() 2012-08-06 15:02:59 -03:00
cmtp Bluetooth: Added /proc/net/cmtp via bt_procfs_init() 2012-08-06 15:02:59 -03:00
hidp Bluetooth: Added /proc/net/hidp via bt_procfs_init() 2012-08-06 15:02:59 -03:00
rfcomm Bluetooth: Added /proc/net/rfcomm via bt_procfs_init() 2012-08-06 15:03:00 -03:00
a2mp.c Bluetooth: Free the l2cap channel list only when refcount is zero 2012-08-06 15:02:58 -03:00
af_bluetooth.c Bluetooth: trivial: Use preferred method for NULL check 2012-08-21 14:54:39 -03:00
hci_conn.c Bluetooth: Add type information to the hci_connect() debug statement 2012-08-15 00:53:21 -03:00
hci_core.c Bluetooth: mgmt: Managing only BR/EDR HCI controllers 2012-08-06 15:02:54 -03:00
hci_event.c Bluetooth: mgmt: Add device disconnect reason 2012-08-21 14:54:40 -03:00
hci_sock.c Bluetooth: Added /proc/net/hci via bt_procfs_init() 2012-08-06 15:02:59 -03:00
hci_sysfs.c Bluetooth: Remove unnecessary headers include 2012-06-05 06:34:08 +03:00
Kconfig Bluetooth: Fix Kconfig help description 2012-02-29 18:50:25 +02:00
l2cap_core.c Bluetooth: Free the l2cap channel list only when refcount is zero 2012-08-06 15:02:58 -03:00
l2cap_sock.c Bluetooth: Added /proc/net/l2cap via bt_procfs_init() 2012-08-06 15:02:59 -03:00
lib.c Bluetooth: Remove unnecessary headers include 2012-06-05 06:34:08 +03:00
Makefile Bluetooth: A2MP: Create A2MP channel 2012-06-05 06:34:11 +03:00
mgmt.c Bluetooth: mgmt: Add device disconnect reason 2012-08-21 14:54:40 -03:00
sco.c Bluetooth: Added /proc/net/sco via bt_procfs_init() 2012-08-06 15:03:00 -03:00
smp.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2012-06-13 15:35:35 -04:00