From 0c9566f2c08ade96a1a6fe88b23e2f7c0f99cebe Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 8 Nov 2008 22:31:22 +0200 Subject: Check for HSP_HS_UUID in the probe callback This change is needed since with the recent UUID matching changes e.g. the Headset AGW record would match HSP_HS_UUID since it contains it within the record. --- input/manager.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'input') diff --git a/input/manager.c b/input/manager.c index 9bf9f8a8..80c9b6b1 100644 --- a/input/manager.c +++ b/input/manager.c @@ -89,6 +89,12 @@ static int headset_probe(struct btd_device *device, GSList *uuids) DBG("path %s", path); + if (!g_slist_find_custom(uuids, HSP_HS_UUID, + (GCompareFunc) strcasecmp)) + return -EINVAL; + + record = btd_device_get_record(device, uuids->data); + if (!record || sdp_get_access_protos(record, &protos) < 0) { error("Invalid record"); return -EINVAL; -- cgit