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:
15d4763
)
Notify for technology disabling when removing a device
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 14 May 2010 16:55:09 +0000
(18:55 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 14 May 2010 17:08:04 +0000
(19:08 +0200)
By not doing so the technology_enabled[] counter for the corresponding
service type is not decreased. Next time the device is plugged back any
client trying to switch the technology off will fail as the counter will
never go back to 0.
src/technology.c
patch
|
blob
|
history
diff --git
a/src/technology.c
b/src/technology.c
index
8b06a77
..
e1dc575
100644
(file)
--- a/
src/technology.c
+++ b/
src/technology.c
@@
-345,6
+345,7
@@
int __connman_technology_remove_device(struct connman_device *device)
DBG("device %p", device);
type = __connman_device_get_service_type(device);
+ __connman_notifier_disable(type);
__connman_notifier_unregister(type);
technology = g_hash_table_lookup(device_table, device);