Add setter/getter for handling MAC randomization policy
[platform/upstream/connman.git] / plugins / gadget.c
old mode 100644 (file)
new mode 100755 (executable)
index 94f6648..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,6 +288,8 @@ static void gadget_tech_disable_tethering(struct connman_technology *technology,
                connman_inet_ifdown(index);
 
                connman_technology_tethering_notify(technology, false);
+
+               gadget_tethering = false;
        }
 }