Bluetooth: Simplify usage of the enable_advertising function
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Jul 2014 12:07:50 +0000 (15:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 8 Jul 2014 12:22:06 +0000 (14:22 +0200)
commit0ec5ae8438af02bf2295f08585d8ab49d15eaf2c
tree1062fba29a1bce2278b70c79490334b9a29a5658
parent5ce194c4a751ac603966dd1567b62035a7dfbf89
Bluetooth: Simplify usage of the enable_advertising function

By adding support for disabling advertising when necessary and doing the
checks for existing LE connections inside the enable_advertising
function we can simplify the calling code quite a lot.

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