summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-09-29 13:08:08 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-09-29 13:08:08 +0200
commit6822f03fb6c77fffc66e8f333f9878e7d5de8041 (patch)
tree69d507c435386d11806f3e570a2f7f26387ebd95
parent50ffb97d6e4fba2498f53ae2a93aa49a55e73614 (diff)
Set device class before storing it
-rw-r--r--src/dbus-hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 58ec1693..3867d6ea 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -1456,8 +1456,8 @@ void hcid_dbus_write_class_complete(bdaddr_t *local)
return;
}
- write_local_class(local, cls);
adapter_set_class(adapter, cls);
+ write_local_class(local, cls);
hci_close_dev(dd);
}