aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-22 15:02:50 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-23 06:07:01 -0500
commit8ec37034ef36b89cfb060bd9273db24e6acb1b3a (patch)
tree96f727b9c22aad6a58b09ed1485147c87b6d14ec /net/bluetooth
parent09b3c3fbbee9aef8ac5d9148ae61aae35766b2a6 (diff)
Bluetooth: mgmt: Fix return value for set_class
The return parameters for Set Device Class should consist of the new class value. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 6850a8b46c62..23421f05abf2 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1470,7 +1470,7 @@ static int set_dev_class(struct sock *sk, u16 index, void *data, u16 len)
1470 1470
1471 if (err == 0) 1471 if (err == 0)
1472 err = cmd_complete(sk, index, MGMT_OP_SET_DEV_CLASS, 0, 1472 err = cmd_complete(sk, index, MGMT_OP_SET_DEV_CLASS, 0,
1473 NULL, 0); 1473 hdev->dev_class, 3);
1474 1474
1475unlock: 1475unlock:
1476 hci_dev_unlock(hdev); 1476 hci_dev_unlock(hdev);