Add setter/getter for handling MAC randomization policy
[platform/upstream/connman.git] / plugins / gadget.c
old mode 100644 (file)
new mode 100755 (executable)
index 97807d8..1b44bbb
@@ -270,6 +270,8 @@ static void gadget_tech_enable_tethering(struct connman_technology *technology,
                connman_inet_ifup(index);
 
                connman_inet_add_to_bridge(index, bridge);
+
+               gadget_tethering = true;
        }
 }
 
@@ -286,12 +288,14 @@ static void gadget_tech_disable_tethering(struct connman_technology *technology,
                connman_inet_ifdown(index);
 
                connman_technology_tethering_notify(technology, false);
+
+               gadget_tethering = false;
        }
 }
 
 static int gadget_tech_set_tethering(struct connman_technology *technology,
                                const char *identifier, const char *passphrase,
-                               const char *bridge, bool enabled, bool hidden)
+                               const char *bridge, bool enabled)
 {
        DBG("bridge %s enabled %d", bridge, enabled);