diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-03-28 12:03:15 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-03-28 13:15:40 +0300 |
commit | 97b4ceb85cabb22a94422fc8b993da090a2b0574 (patch) | |
tree | 09c68b2f71723d7cfe98c9ccdb87b499e86d25b7 /src/adapter.c | |
parent | 1ac88d03313b31aec630e221c479e3242781f19b (diff) |
Add support for setting VID source in DeviceID from config file
This allows to set if VID source is Bluetooth SIG or USB. Assigner is
provided as string {bluetooth,usb} and fallback to usb if none is set
in config.
Diffstat (limited to 'src/adapter.c')
-rw-r--r-- | src/adapter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/adapter.c b/src/adapter.c index 7a2214a5..0b4f9bab 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -3476,9 +3476,11 @@ int btd_adapter_encrypt_link(struct btd_adapter *adapter, bdaddr_t *bdaddr, } int btd_adapter_set_did(struct btd_adapter *adapter, uint16_t vendor, - uint16_t product, uint16_t version) + uint16_t product, uint16_t version, + uint16_t source) { - return adapter_ops->set_did(adapter->dev_id, vendor, product, version); + return adapter_ops->set_did(adapter->dev_id, vendor, product, version, + source); } int adapter_create_bonding(struct btd_adapter *adapter, bdaddr_t *bdaddr, |