With synchronous technologies (e.g. ethernet),
connman_technology_tethering_notify() is called immediatly after
enabling or disabling tethering. If tethering_status is not properly
set, then that will fail.
if (status == tethering_status)
return -EALREADY;
+ tethering_status = status;
+
if (status == TRUE)
__connman_technology_enable_tethering(BRIDGE_NAME);
else
__connman_technology_disable_tethering(BRIDGE_NAME);
- tethering_status = status;
-
return 0;
}