Bluetooth: mgmt: Fix set_fast_connectable error return
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 14:40:33 +0000 (16:40 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 16:48:20 +0000 (18:48 +0200)
commit5400c044f3fac38f521362d76711e4c170f78b89
treeb16f41732384e8a23ff68e0eb18e0e623a1d2d9f
parentb5235a65ad19f47c5995f054d3dcce90570d1a1c
Bluetooth: mgmt: Fix set_fast_connectable error return

This patch ensures that Set Fast Connectable fails apropriately if we
are not already in a connectable state (which is a pre-requisite for
fast connectable).

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