Bluetooth: Use helper functions for enabling/disabling advertising
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Oct 2013 09:55:21 +0000 (02:55 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 6 Oct 2013 12:53:25 +0000 (14:53 +0200)
commitbba3aa550f614b8abf6614f6696a095030ce2ff6
treea34dbb3ef87b373fab347aba5a8ad7b02d8ca53c
parent03d87419defc809261c4953e5b44f9e0c8f9029a
Bluetooth: Use helper functions for enabling/disabling advertising

The tasks of enabling and disabling advertising are required in many
cases. So refactor the actual HCI operations into two common helpers
to make the code simpler.

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