]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Read LE remote features during connection establishment
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Apr 2015 16:05:27 +0000 (09:05 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 9 Apr 2015 05:36:54 +0000 (08:36 +0300)
commitf0515933b38f0140754040f855d9bb293e69f601
tree31c350329b0d90e947cef066ad3ccb426ea4c07d
parent2652b1cbe136f97509c5da39de23939cef55f2e0
Bluetooth: Read LE remote features during connection establishment

When establishing a Bluetooth LE connection, read the remote used
features mask to determine which features are supported. This was
not really needed with Bluetooth 4.0, but since Bluetooth 4.1 and
also 4.2 have introduced new optional features, this becomes more
important.

This works the same as with BR/EDR where the connection enters the
BT_CONFIG stage and hci_connect_cfm call is delayed until the remote
features have been retrieved. Only after successfully receiving the
remote features, the connection enters the BT_CONNECTED state.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci.h
net/bluetooth/hci_event.c