diff options
Diffstat (limited to 'hcid/device.c')
-rw-r--r-- | hcid/device.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c index 3c4f960d..983071d0 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -401,6 +401,17 @@ int get_device_class(uint16_t dev_id, uint8_t *cls) return 0; } +int set_device_class(uint16_t dev_id, uint8_t *cls) +{ + struct hci_dev *dev; + + ASSERT_DEV_ID; + dev = &devices[dev_id]; + memcpy(dev->class, cls, 3); + + return 0; +} + int get_device_version(uint16_t dev_id, char *version, size_t size) { struct hci_dev *dev; |