android_kernel_samsung_a7y1.../net/bluetooth
Mattijs Korpershoek 05f2d8bc5d Bluetooth: hci_core: fix init for HCI_USER_CHANNEL
[ Upstream commit eb8c101e28496888a0dcfe16ab86a1bee369e820 ]

During the setup() stage, HCI device drivers expect the chip to
acknowledge its setup() completion via vendor specific frames.

If userspace opens() such HCI device in HCI_USER_CHANNEL [1] mode,
the vendor specific frames are never tranmitted to the driver, as
they are filtered in hci_rx_work().

Allow HCI devices which operate in HCI_USER_CHANNEL mode to receive
frames if the HCI device is is HCI_INIT state.

[1] https://www.spinics.net/lists/linux-bluetooth/msg37345.html

Fixes: 23500189d7e0 ("Bluetooth: Introduce new HCI socket channel for user operation")
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:20:46 +02:00
..
bnep
cmtp
hidp Bluetooth: hidp: fix buffer overflow 2020-04-06 16:43:08 +02:00
rfcomm
6lowpan.c Bluetooth: 6lowpan: search for destination address in all peers 2020-04-06 19:55:39 +02:00
a2mp.c
a2mp.h
af_bluetooth.c
amp.c
amp.h
ecc.c
ecc.h
hci_conn.c Bluetooth: Fix regression with minimum encryption key size alignment 2020-04-06 19:16:54 +02:00
hci_core.c Bluetooth: hci_core: fix init for HCI_USER_CHANNEL 2020-04-07 13:20:46 +02:00
hci_debugfs.c
hci_debugfs.h
hci_event.c Revert "Bluetooth: validate BLE connection interval updates" 2020-04-07 07:35:58 +02:00
hci_request.c
hci_request.h
hci_sock.c Bluetooth: Fix decrementing reference count twice in releasing socket 2020-04-06 14:19:03 +02:00
hci_sysfs.c
Kconfig
l2cap_core.c Bluetooth: L2CAP: Detect if remote is not able to use the whole MPS 2020-04-07 12:29:42 +02:00
l2cap_sock.c
lib.c
Makefile
mgmt_util.c
mgmt_util.h
mgmt.c
sco.c
selftest.c
selftest.h
smp.c Bluetooth: Add SMP workaround Microsoft Surface Precision Mouse bug 2020-04-06 20:04:59 +02:00
smp.h