diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-30 12:21:44 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-12-10 02:51:50 +0300 |
commit | d6b7e2cddb72a87c2597af43ba9f5f2b03a2208b (patch) | |
tree | 32254aefb08fc902d8bf24da0d2876758975c73c /net/bluetooth/hci_request.h | |
parent | 550a8ca765a154ca38dcd888b4f12a173e761bdc (diff) | |
download | linux-d6b7e2cddb72a87c2597af43ba9f5f2b03a2208b.tar.xz |
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_request.h')
0 files changed, 0 insertions, 0 deletions