Bluetooth: mgmt: Fix Removing discoverable timeout in set_connectable
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 17:15:49 +0000 (19:15 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 18:04:39 +0000 (20:04 +0200)
commitdf2c6c5ed5c0bc13b78e855d3e5d9aa3472567ba
tree647ba3277d67ee8cd1a739db1f96104aea8311d1
parent5e5282bbfde9ca6157dba913d90cbab859a837e2
Bluetooth: mgmt: Fix Removing discoverable timeout in set_connectable

When switching connectable mode off any pending discoverable timeout
must also be disabled to avoid duplicate write_scan_enable commands.

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