From: Alok Barsode <[email protected]>

---
 plugins/ethernet.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 8295093..0cbaf24 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -309,10 +309,31 @@ static struct connman_technology_driver tech_driver = {
        .set_tethering          = tech_set_tethering,
 };
 
+static int eth_probe(struct connman_technology *technology)
+{
+       return 0;
+}
+
+static void eth_remove(struct connman_technology *technology)
+{
+       DBG("");
+}
+
+static struct connman_technology_driver eth_driver = {
+       .name                   = "ethernet",
+       .type                   = CONNMAN_SERVICE_TYPE_ETHERNET,
+       .probe                  = eth_probe,
+       .remove                 = eth_remove,
+};
+
 static int ethernet_init(void)
 {
        int err;
 
+       err = connman_technology_driver_register(&eth_driver);
+       if (err < 0)
+               return err;
+
        err = connman_network_driver_register(&cable_driver);
        if (err < 0)
                return err;
@@ -335,6 +356,8 @@ static int ethernet_init(void)
 
 static void ethernet_exit(void)
 {
+       connman_technology_driver_unregister(&eth_driver);
+
        connman_technology_driver_unregister(&tech_driver);
 
        connman_network_driver_unregister(&cable_driver);
-- 
1.7.5.4

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

Reply via email to