Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352251
b: refs/heads/master
c: 54ad6d8
h: refs/heads/master
i:
  352249: 2d65bc3
  352247: f582945
v: v3
  • Loading branch information
Johan Hedberg authored and Gustavo Padovan committed Jan 23, 2013
1 parent 2aa14f2 commit 6922928
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e57e619f463e7841940ef1b98969e23f71f5ee8a
refs/heads/master: 54ad6d8a5afe1a6d162d8d229a3d8fc48b254d24
9 changes: 9 additions & 0 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,15 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,

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

for (i = 0; i < key_count; i++) {
struct mgmt_ltk_info *key = &cp->keys[i];

if (key->master != 0x00 && key->master != 0x01)
return cmd_status(sk, hdev->id,
MGMT_OP_LOAD_LONG_TERM_KEYS,
MGMT_STATUS_INVALID_PARAMS);
}

hci_dev_lock(hdev);

hci_smp_ltks_clear(hdev);
Expand Down

0 comments on commit 6922928

Please sign in to comment.