Skip to content

Commit

Permalink
Bluetooth: mgmt: Fix return value for set_class
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hedberg committed Feb 23, 2012
1 parent 09b3c3f commit 8ec3703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ static int set_dev_class(struct sock *sk, u16 index, void *data, u16 len)

if (err == 0)
err = cmd_complete(sk, index, MGMT_OP_SET_DEV_CLASS, 0,
NULL, 0);
hdev->dev_class, 3);

unlock:
hci_dev_unlock(hdev);
Expand Down

0 comments on commit 8ec3703

Please sign in to comment.