summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorSonny Sasaka <sonnysasaka@chromium.org>2020-12-09 13:35:14 -0800
committerMarcel Holtmann <marcel@holtmann.org>2020-12-18 22:46:42 +0100
commit89e65975fea5c25706e8cc3a89f9f97b20fc45ad (patch)
treee30af2e7b24118d6e7e7e86c71f50e85a7eb1a67 /crypto
parent1ca2a39454069998918f0b24a654c613568ed505 (diff)
downloadlinux-stable-89e65975fea5c25706e8cc3a89f9f97b20fc45ad.tar.gz
linux-stable-89e65975fea5c25706e8cc3a89f9f97b20fc45ad.tar.bz2
linux-stable-89e65975fea5c25706e8cc3a89f9f97b20fc45ad.zip
Bluetooth: Cancel Inquiry before Create Connection
Many controllers do not allow HCI Create Connection while it is doing Inquiry. This patch adds Inquiry Cancel before Create Connection in this case to allow the controller to do Create Connection. User space will be aware of this Inquiry cancellation and they may issue another discovery request afterwards. Sample Command Disallowed response of HCI Create Connection: < HCI Command: Inquiry (0x01|0x0001) plen 5 Access code: 0x9e8b33 (General Inquiry) Length: 10.24s (0x08) Num responses: 0 > HCI Event: Command Status (0x0f) plen 4 Inquiry (0x01|0x0001) ncmd 2 Status: Success (0x00) < HCI Command: Create Connection (0x01|0x0005) plen 13 Address: XX:XX:XX:XX:XX:XX Packet type: 0xcc18 Page scan repetition mode: R2 (0x02) Page scan mode: Mandatory (0x00) Clock offset: 0x0000 Role switch: Allow slave (0x01) > HCI Event: Command Status (0x0f) plen 4 Create Connection (0x01|0x0005) ncmd 1 Status: Success (0x00) > HCI Event: Connect Complete (0x03) plen 11 Status: Command Disallowed (0x0c) Handle: 65535 Address: XX:XX:XX:XX:XX:XX Link type: ACL (0x01) Encryption: Disabled (0x00) Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org> Reviewed-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Sonny Sasaka <sonnysasaka@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions