From: Johan Hedberg Date: Fri, 19 Apr 2013 15:35:21 +0000 (+0300) Subject: Bluetooth: Fix sending write_le_host_supporte for LE-only controllers X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~77^2~18^2^2~9^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c73eee9172bf061202c75ad4d16506a7efd04d1c;p=pandora-kernel.git 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 Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed