c0d78a8ac66ddccf9e306af52c1df572dadf72e0
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / cwiid / 0002-Update-for-BlueZ-changes.patch
1 From c5dd7d4a9af5a7d8ead8ad26d9e5e0f8f8292d29 Mon Sep 17 00:00:00 2001
2 From: "L. Donnie Smith" <donnie.smith@gatech.edu>
3 Date: Sun, 30 Nov 2008 22:34:08 +0000
4 Subject: [PATCH] Update for BlueZ changes.
5
6 git-svn-id: http://abstrakraft.org/cwiid/svn/trunk@183 918edb2d-ff29-0410-9de2-eb38e7f22bc7
7 ---
8  libcwiid/bluetooth.c | 4 ++--
9  1 file changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/libcwiid/bluetooth.c b/libcwiid/bluetooth.c
12 index 63284a8..e986f75 100644
13 --- a/libcwiid/bluetooth.c
14 +++ b/libcwiid/bluetooth.c
15 @@ -122,8 +122,8 @@ int cwiid_get_bdinfo_array(int dev_id, unsigned int timeout, int max_bdinfo,
16                 }
17  
18                 /* timeout (10000) in milliseconds */
19 -               if (hci_remote_name(sock, &dev_list[i].bdaddr, BT_NAME_LEN,
20 -                                   (*bdinfo)[bdinfo_count].name, 10000)) {
21 +               if (hci_read_remote_name(sock, &dev_list[i].bdaddr, BT_NAME_LEN,
22 +                                        (*bdinfo)[bdinfo_count].name, 10000)) {
23                         cwiid_err(NULL, "Bluetooth name read error");
24                         err = 1;
25                         goto CODA;
26 -- 
27 1.8.5.2
28