diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-21 11:07:03 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-21 11:07:03 +0000 |
commit | 01416cc1b3b051c5b876f0ad8f9233a390ed7225 (patch) | |
tree | 4776e8418b83832f8fdf37164cf775a353d1498c /hcid/dbus-manager.c | |
parent | 46b2bfea1a997ffacc4c46c53532681efdfa4a52 (diff) |
Use hci_devinfo in favor of HCIGETDEVINFO ioctl where possible
Diffstat (limited to 'hcid/dbus-manager.c')
-rw-r--r-- | hcid/dbus-manager.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hcid/dbus-manager.c b/hcid/dbus-manager.c index 10d1a07f..b4805632 100644 --- a/hcid/dbus-manager.c +++ b/hcid/dbus-manager.c @@ -169,10 +169,7 @@ static DBusHandlerResult list_adapters(DBusConnection *conn, char path[MAX_PATH_LENGTH], *path_ptr = path; struct hci_dev_info di; - memset(&di, 0 , sizeof(struct hci_dev_info)); - di.dev_id = dr->dev_id; - - if (ioctl(sk, HCIGETDEVINFO, &di) < 0) + if (hci_devinfo(dr->dev_id, &di) < 0) continue; snprintf(path, sizeof(path), "%s/%s", BASE_PATH, di.name); |