Commit 9997a533 authored by Johan Hedberg's avatar Johan Hedberg

Bluetooth: mgmt: Fix return value of add/remove_uuid

The Add/Remove UUID commands should return the device class instead of
an empty parameter list.
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Acked-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 504c8dcd
...@@ -1367,7 +1367,7 @@ static int add_uuid(struct sock *sk, u16 index, void *data, u16 len) ...@@ -1367,7 +1367,7 @@ static int add_uuid(struct sock *sk, u16 index, void *data, u16 len)
if (err < 0) if (err < 0)
goto failed; goto failed;
err = cmd_complete(sk, index, MGMT_OP_ADD_UUID, 0, NULL, 0); err = cmd_complete(sk, index, MGMT_OP_ADD_UUID, 0, hdev->dev_class, 3);
failed: failed:
hci_dev_unlock(hdev); hci_dev_unlock(hdev);
...@@ -1428,7 +1428,8 @@ static int remove_uuid(struct sock *sk, u16 index, void *data, u16 len) ...@@ -1428,7 +1428,8 @@ static int remove_uuid(struct sock *sk, u16 index, void *data, u16 len)
if (err < 0) if (err < 0)
goto unlock; goto unlock;
err = cmd_complete(sk, index, MGMT_OP_REMOVE_UUID, 0, NULL, 0); err = cmd_complete(sk, index, MGMT_OP_REMOVE_UUID, 0,
hdev->dev_class, 3);
unlock: unlock:
hci_dev_unlock(hdev); hci_dev_unlock(hdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment