diff options
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 36b23101d651..d9b042efbf42 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -1519,6 +1519,10 @@ static int load_link_keys(struct sock *sk, struct hci_dev *hdev, void *data, | |||
1519 | MGMT_STATUS_INVALID_PARAMS); | 1519 | MGMT_STATUS_INVALID_PARAMS); |
1520 | } | 1520 | } |
1521 | 1521 | ||
1522 | if (cp->debug_keys != 0x00 && cp->debug_keys != 0x01) | ||
1523 | return cmd_status(sk, hdev->id, MGMT_OP_LOAD_LINK_KEYS, | ||
1524 | MGMT_STATUS_INVALID_PARAMS); | ||
1525 | |||
1522 | BT_DBG("%s debug_keys %u key_count %u", hdev->name, cp->debug_keys, | 1526 | BT_DBG("%s debug_keys %u key_count %u", hdev->name, cp->debug_keys, |
1523 | key_count); | 1527 | key_count); |
1524 | 1528 | ||