OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc6bc9
)
core: Fix class of device value from static configuration
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 30 Dec 2012 09:44:11 +0000
(
01:44
-0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 30 Dec 2012 09:44:11 +0000
(
01:44
-0800)
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
2c11efb
..
4fc719f
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-2717,7
+2717,11
@@
static void load_config(struct btd_adapter *adapter)
}
/* Set class */
- adapter->dev_class = main_opts.class;
+ adapter->major_class = (main_opts.class & 0x001f00) >> 8;
+ adapter->minor_class = (main_opts.class & 0x0000fc) >> 2;
+
+ DBG("class: major %u minor %u",
+ adapter->major_class, adapter->minor_class);
/* Get pairable mode */
adapter->pairable = g_key_file_get_boolean(key_file, "General",