Diff between df29632772171d5fd0e71c518fc3753adb11d0c0 and fce691bd0bd08710ffd379025e894bcffaa5acb6

Changed Files

File Additions Deletions Status
profiles/input/device.c +3 -3 modified

Full Patch

diff --git a/profiles/input/device.c b/profiles/input/device.c
index 0c71786..6bcc6a5 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -207,15 +207,15 @@ static void extract_hid_record(sdp_record_t *rec, struct hidp_connadd_req *req)
 	sdp_data_t *pdlist, *pdlist2;
 	uint8_t attr_val;
 
-	pdlist = sdp_data_get(rec, 0x0101);
-	pdlist2 = sdp_data_get(rec, 0x0102);
+	pdlist = sdp_data_get(rec, SDP_ATTR_SVCDESC_PRIMARY);
+	pdlist2 = sdp_data_get(rec, SDP_ATTR_PROVNAME_PRIMARY);
 	if (pdlist && pdlist2 &&
 				strncmp(pdlist->val.str, pdlist2->val.str, 5)) {
 		snprintf(req->name, sizeof(req->name), "%s %s",
 					pdlist2->val.str, pdlist->val.str);
 	} else {
 		if (!pdlist)
-			pdlist = sdp_data_get(rec, 0x0100);
+			pdlist = sdp_data_get(rec, SDP_ATTR_SVCNAME_PRIMARY);
 
 		if (pdlist)
 			snprintf(req->name, sizeof(req->name), "%s",