If this works for any kind of driver, it will be useful in case of P2P
driver mostly.
---
 src/technology.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/technology.c b/src/technology.c
index 76f936a..e2de923 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -141,6 +141,11 @@ int connman_technology_driver_register(struct 
connman_technology_driver *driver)
        struct connman_device *device;
        enum connman_service_type type;
 
+       for (list = driver_list; list; list = list->next) {
+               if (list->data == driver)
+                       return 0;
+       }
+
        DBG("Registering %s driver", driver->name);
 
        driver_list = g_slist_insert_sorted(driver_list, driver,
-- 
1.8.3.2

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to