Bluetooth: mgmt: Fix Set SSP supported check
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 14:35:26 +0000 (16:35 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:06:59 +0000 (13:06 +0200)
commit6c8f12c143fe83485afa530320e6f70dfc1aad54
tree945ef87b51a0783e7b11e6c310f65113743a6fcc
parent97e0bdeb93cc9bd014c21d5400af4fa7f2fe2f91
Bluetooth: mgmt: Fix Set SSP supported check

The test for SSP support needs to be earlier in the set_ssp function so
that we return an error when SSP is not supported even when the device
is powered off.

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