summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-08-23 09:48:14 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-08-23 09:48:14 +0000
commitf205cd06dc4e9da2c1d5109e570008d7d80b8380 (patch)
treea38b315e6880e1795f1255b7f42eef9aa5b23231 /hcid/main.c
parentd4b3c37d8dc33d144559a10fdd826b853b6d11a0 (diff)
Update service classes on all adapters
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 75229fba..6539642d 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -467,12 +467,12 @@ static void configure_device(int dev_id)
if (read_local_class(&di.bdaddr, cls) < 0) {
class = htobl(device_opts->class);
- cls[2] = get_service_classes();
+ cls[2] = get_service_classes(&di.bdaddr);
memcpy(cp.dev_class, &class, 3);
} else {
if (!(device_opts->scan & SCAN_INQUIRY))
cls[1] &= 0xdf; /* Clear discoverable bit */
- cls[2] = get_service_classes();
+ cls[2] = get_service_classes(&di.bdaddr);
memcpy(cp.dev_class, cls, 3);
}