~ubuntu-branches/ubuntu/wily/bluez/wily

« back to all changes in this revision

Viewing changes to compat/hidd.c

ImportĀ upstreamĀ versionĀ 4.81

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  BlueZ - Bluetooth protocol stack for Linux
4
4
 *
5
 
 *  Copyright (C) 2003-2009  Marcel Holtmann <marcel@holtmann.org>
 
5
 *  Copyright (C) 2003-2010  Marcel Holtmann <marcel@holtmann.org>
6
6
 *
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
453
453
        int csk, isk, err;
454
454
 
455
455
        memset(&req, 0, sizeof(req));
 
456
        name[0] = '\0';
456
457
 
457
458
        err = get_sdp_device_info(src, dst, &req);
458
459
        if (err < 0 && fakehid)
572
573
 
573
574
        for (i = 0; i < num_rsp; i++) {
574
575
                memcpy(class, (info+i)->dev_class, 3);
575
 
                if ((class[0] == 0x00 && class[2] == 0x00 && 
 
576
                if ((class[0] == 0x00 && class[2] == 0x00 &&
576
577
                                (class[1] == 0x40 || class[1] == 0x1f)) ||
577
578
                                (class[0] == 0x10 && class[1] == 0x02 && class[2] == 0x40)) {
578
579
                        bacpy(&dst, &(info+i)->bdaddr);