summaryrefslogtreecommitdiffstats
path: root/hcid/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/device.c')
-rw-r--r--hcid/device.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c
index ec53a362..f81ac693 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -441,3 +441,21 @@ int set_device_alias(uint16_t dev_id, const bdaddr_t *bdaddr, const char *alias)
return textfile_put(filename, addr, alias);
}
+
+int get_encryption_key_size(uint16_t dev_id, const bdaddr_t *baddr)
+{
+ struct hci_dev *dev;
+ int size;
+
+ ASSERT_DEV_ID;
+
+ dev = &devices[dev_id];
+
+ switch (dev->manufacturer) {
+ default:
+ size = -ENOENT;
+ break;
+ }
+
+ return size;
+}