Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306851
b: refs/heads/master
c: c72d4b8
h: refs/heads/master
i:
  306849: 680f571
  306847: deac404
v: v3
  • Loading branch information
Szymon Janc authored and Gustavo Padovan committed May 9, 2012
1 parent bede74f commit 0aa900d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d97dcb66001222efa79e55f5260b9b660fd452a4
refs/heads/master: c72d4b8afa8002cd6f64225954bee78296321e7e
9 changes: 8 additions & 1 deletion trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2532,12 +2532,19 @@ static int set_device_id(struct sock *sk, struct hci_dev *hdev, void *data,
{
struct mgmt_cp_set_device_id *cp = data;
int err;
__u16 source;

BT_DBG("%s", hdev->name);

source = __le16_to_cpu(cp->source);

if (source > 0x0002)
return cmd_status(sk, hdev->id, MGMT_OP_SET_DEVICE_ID,
MGMT_STATUS_INVALID_PARAMS);

hci_dev_lock(hdev);

hdev->devid_source = __le16_to_cpu(cp->source);
hdev->devid_source = source;
hdev->devid_vendor = __le16_to_cpu(cp->vendor);
hdev->devid_product = __le16_to_cpu(cp->product);
hdev->devid_version = __le16_to_cpu(cp->version);
Expand Down

0 comments on commit 0aa900d

Please sign in to comment.