]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Refactor set_connectable settings update to separate function
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 19 Oct 2013 20:38:18 +0000 (23:38 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Oct 2013 16:05:40 +0000 (09:05 -0700)
commit1f4a4073458630f78038eb4bc56b5f4527c4bd08
tree6cb40bfcc9b54c01c1c5996c212c5ab7b4ffe9ee
parentb3bde16f6ccbdd17731a398b87e2a39e06cd22b9
Bluetooth: Refactor set_connectable settings update to separate function

We will need to directly update the device flags and notify user space
of the new settings not just when we're powered off but also if it turns
out that there are no HCI commands to send (which can happen in
particular when BR/EDR is disabled). Since this is a considerable amount
of code, refactor it to a separate function so it can be reused for the
"no HCI commands to send" case.

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