From d94854fb1478ed156cbb837d639c92c21dc476aa Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 30 Dec 2011 15:30:58 +0200 Subject: [PATCH] hciops: Add check for EIR complete name --- plugins/hciops.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/hciops.c b/plugins/hciops.c index 79d86f767..77d2421c9 100644 --- a/plugins/hciops.c +++ b/plugins/hciops.c @@ -2039,9 +2039,16 @@ static inline void extended_inquiry_result(int index, int plen, void *ptr) uint32_t class = info->dev_class[0] | (info->dev_class[1] << 8) | (info->dev_class[2] << 16); + gboolean cfm_name; + + if (eir_has_complete_name(info->data, sizeof(info->data))) + cfm_name = FALSE; + else + cfm_name = TRUE; dev_found(dev, &info->bdaddr, ADDR_TYPE_BREDR, class, - info->rssi, 1, info->data, HCI_MAX_EIR_LENGTH); + info->rssi, cfm_name, + info->data, sizeof(info->data)); ptr += EXTENDED_INQUIRY_INFO_SIZE; } } -- 2.47.3