]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d3150f5d1d07538ca8b265922bcd5087bd1b605
tree39d634b24ad66013fff9124bba658c808475b9ec
parent04b0051db8d5d77b63546e92e2bde1a9f5ceb0c4
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