]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Simplify the code for re-arming discoverable timeout
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 15 Oct 2013 15:28:51 +0000 (08:28 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 15 Oct 2013 15:42:12 +0000 (18:42 +0300)
commit166e2360d28e7b7e6004fad954a4fdc1b5ea4628
tree068ff3c6e29484cd5d3211e2b675e6248d0fdeb5
parent33c1b27d0e17c5b3c1122b432e49419fcefe7eab
Bluetooth: Simplify the code for re-arming discoverable timeout

When only the discoverable timeout gets updated, just cancel the current
timeout, store the new timeout value. If the new timeout is valid, then
arm the discoverable timeout again.

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