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)
commit0fe29fd1cd77ffbdb8e36ec1715868d9d8011c9b
tree31c350329b0d90e947cef066ad3ccb426ea4c07d
parent40f66c05c360777e847033ddbe076d88123719d1
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