Bluetooth: Remove redundant read_host_features commands
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 27 Feb 2012 23:07:22 +0000 (01:07 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 27 Feb 2012 23:54:19 +0000 (01:54 +0200)
commit8f984dfaf0bfa1355548cfba00473c8fa8e22d6e
tree7c22e24bf6e2ff7ab28bfaadf1f9da983a962827
parent0b60eba1b29740a606e6b7694d2dc98b6085a1bf
Bluetooth: Remove redundant read_host_features commands

Previously the write_le_enable would trigger a read_host_features
command but since we have access to the value LE support was set to we
can simply just clear or set the bit in hdev->host_features. This also
removes a second unnecessary read_host_features command from the device
initialization procedure since LE is only enabled after the first
read_host_features command completes.

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