]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix sending write_le_host_supporte for LE-only controllers
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 19 Apr 2013 15:35:21 +0000 (18:35 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 23 Apr 2013 23:20:12 +0000 (20:20 -0300)
commitb8315fff85f1fa2ddda4400cb3a7cb9c3939f8af
tree6141b15c1eeddd09cf1a7324cc6974f75cd41189
parentca3c98f422db31cd2cb3301aff9b63c26deb24bb
Bluetooth: Fix sending write_le_host_supporte for LE-only controllers

The Bluetooth Core Specification (4.0) defines the Write LE Host
Supported HCI command as only available for controllers supporting
BR/EDR. This is further reflected in the Read Local Extended Features
HCI command also not being available for LE-only controllers. In other
words, host-side LE support is implicit for single-mode LE controllers
and doesn't have explicit HCI-level enablement.

This patch ensures that the LE setting is always exposed as enabled
through mgmt and returns a "rejected" response if user space tries to
toggle the setting. The patch also ensures that Write LE Host Supported
is never sent for LE-only controllers.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c