projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fc0a3a
)
bluetooth: Add the device into hash table when relevant
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Thu, 16 Aug 2012 13:36:37 +0000
(16:36 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Thu, 16 Aug 2012 14:13:57 +0000
(17:13 +0300)
Fixes BMC#25215
plugins/bluetooth.c
patch
|
blob
|
history
diff --git
a/plugins/bluetooth.c
b/plugins/bluetooth.c
index 44d32d1170ae3118bcd392a7ab139f12aab82f1c..2af0201507ae0e9fdba66bca147a91ed6a82529c 100644
(file)
--- a/
plugins/bluetooth.c
+++ b/
plugins/bluetooth.c
@@
-705,8
+705,6
@@
static void adapter_properties_reply(DBusPendingCall *call, void *user_data)
if (device != NULL)
goto update;
- g_hash_table_insert(bluetooth_devices, g_strdup(path), device);
-
ether_aton_r(address, &addr);
snprintf(ident, 13, "%02x%02x%02x%02x%02x%02x",
@@
-721,6
+719,8
@@
static void adapter_properties_reply(DBusPendingCall *call, void *user_data)
if (device == NULL)
goto done;
+ g_hash_table_insert(bluetooth_devices, g_strdup(path), device);
+
connman_device_set_ident(device, ident);
connman_device_set_string(device, "Path", path);