aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-30 11:21:44 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-12-10 00:51:50 +0100
commitd6b7e2cddb72a87c2597af43ba9f5f2b03a2208b (patch)
tree32254aefb08fc902d8bf24da0d2876758975c73c /net/bluetooth/hci_core.c
parentBluetooth: Remove redundant check for req.cmd_q (diff)
downloadlinux-dev-d6b7e2cddb72a87c2597af43ba9f5f2b03a2208b.tar.xz
linux-dev-d6b7e2cddb72a87c2597af43ba9f5f2b03a2208b.zip
Bluetooth: Clean up advertising initialization in powered_update_hci()
The logic in powered_update_hci() to initialize the advertising data & state is a bit more complicated than it needs to be. It was previously not doing anything if HCI_LE_ENABLED wasn't set, but this was not obvious by quickly looking at the code. Now the conditions for the various actions are more explicit. Another simplification is due to the fact that __hci_req_schedule_adv_instance() takes care of setting hdev->cur_adv_instance so there's no need to set it before calling the function. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_core.c')
0 files changed, 0 insertions, 0 deletions