]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Update class of device after changing discoverable mode
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 15 Oct 2013 13:33:57 +0000 (06:33 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 15 Oct 2013 14:22:38 +0000 (17:22 +0300)
commit759361eb2a2ed6db68ece51dca3c813e6880fb2d
tree984fc4fd4a1476f2b5ee0f450dc3adaa158a02b2
parentb10b897698cdd9f00bc1b5d58a020c07f3199409
Bluetooth: Update class of device after changing discoverable mode

When the discoverable mode gets changed, ensure that the class of
device value has the correct limited discoverable bit value set.

Since the class of device HCI command will only be send to the
controller when the value changes, it is safe to just always
trigger the update.

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