Bluetooth: Fix handling of discoverable setting with timeout
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Feb 2012 17:21:00 +0000 (18:21 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:00 +0000 (13:07 +0200)
commit955638ecec9431788e291fc99f34c42124071abe
treeb2fb709e91207da67d3b1269b37b32ebb944a924
parent24c54a90527ca5b85e7feedde2c779dc056ffddb
Bluetooth: Fix handling of discoverable setting with timeout

The current handling of the discoverable timeout was missing the proper
handling of the timeout when the mode was already set. Now the command
can be used to expire or retrigger the timeout.

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