diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-02-17 16:51:50 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-19 09:14:20 +0200 |
commit | 46b71a7f3f5cde36bef4c9d3c0f1cb5754e0bd45 (patch) | |
tree | a2137c98fcdb5a95303e94d9c92adf04b3a6c238 /src | |
parent | ff7518eaa58848ca6a2311a61742ec7270b6c9b2 (diff) |
Fix uninitialised value.
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus-hci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 0fd8c2cd..5c3b98d5 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1003,10 +1003,10 @@ int set_service_classes(int dd, const uint8_t *cls, uint8_t value) if (cls[2] == value) return 0; /* Already set */ - debug("Changing service classes to 0x%06x", dev_class); - dev_class = (value << 16) | (cls[1] << 8) | cls[0]; + debug("Changing service classes to 0x%06x", dev_class); + if (hci_write_class_of_dev(dd, dev_class, HCI_REQ_TIMEOUT) < 0) { int err = -errno; error("Can't write class of device: %s (%d)", |