diff --git a/profiles/deviceinfo/deviceinfo.c b/profiles/deviceinfo/deviceinfo.c index 9910533fd..da27df824 100644 --- a/profiles/deviceinfo/deviceinfo.c +++ b/profiles/deviceinfo/deviceinfo.c @@ -106,7 +106,7 @@ static void read_pnpid_cb(guint8 status, const guint8 *pdu, guint16 len, return; } - device_set_pnpid(ch->d->dev, value[0], att_get_u16(&value[1]), + btd_device_set_pnpid(ch->d->dev, value[0], att_get_u16(&value[1]), att_get_u16(&value[3]), att_get_u16(&value[5])); } diff --git a/src/device.c b/src/device.c index f0223c80c..a196af481 100644 --- a/src/device.c +++ b/src/device.c @@ -2349,7 +2349,7 @@ static void update_bredr_services(struct browse_req *req, sdp_list_t *recs) version = pdlist ? pdlist->val.uint16 : 0x0000; if (source || vendor || product || version) - device_set_pnpid(device, source, vendor, + btd_device_set_pnpid(device, source, vendor, product, version); } @@ -4101,7 +4101,7 @@ gboolean btd_device_remove_attio_callback(struct btd_device *device, guint id) return TRUE; } -void device_set_pnpid(struct btd_device *device, uint8_t vendor_id_src, +void btd_device_set_pnpid(struct btd_device *device, uint8_t vendor_id_src, uint16_t vendor_id, uint16_t product_id, uint16_t product_ver) { diff --git a/src/device.h b/src/device.h index 371569886..703dfcfdf 100644 --- a/src/device.h +++ b/src/device.h @@ -116,7 +116,7 @@ void btd_device_unref(struct btd_device *device); int device_block(struct btd_device *device, gboolean update_only); int device_unblock(struct btd_device *device, gboolean silent, gboolean update_only); -void device_set_pnpid(struct btd_device *device, uint8_t vendor_id_src, +void btd_device_set_pnpid(struct btd_device *device, uint8_t vendor_id_src, uint16_t vendor_id, uint16_t product_id, uint16_t product_ver); GIOChannel *device_att_connect(gpointer user_data);