Bluetooth: Fix advertising parameter update when toggling connectable
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Jul 2014 07:51:27 +0000 (10:51 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Jul 2014 08:02:35 +0000 (10:02 +0200)
commite8b1202ce6ab67341660812e7d66db4c3e2a5649
tree39d634b24ad66013fff9124bba658c808475b9ec
parentc072d546c20390fea0e5332d00fd1b67366ca013
Bluetooth: Fix advertising parameter update when toggling connectable

When we change the connectable state and have advertising enabled we
should update the advertising parameters no matter what. The code was
incorrectly only updating them if advertising was not already active.
This patch fixes the issue.

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