]> 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)
commitbbbd46bc252375be98d6910065364c8bddd372f5
tree39d634b24ad66013fff9124bba658c808475b9ec
parent79c960c417c5cda516982e7e2758f9aa7b01de14
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