diff options
author | Martin Xu <martin.xu@intel.com> | 2010-12-03 19:06:47 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-07 19:24:16 +0100 |
commit | 19ac02e348fe64d2be0e28e30c377f79c5e9e185 (patch) | |
tree | d30dd249ae0e084d4a64f89b69b9c39a56640fa7 /src | |
parent | 6d561afdde44e340a7339f1063c99797b92f470a (diff) | |
download | connman-19ac02e348fe64d2be0e28e30c377f79c5e9e185.tar.gz connman-19ac02e348fe64d2be0e28e30c377f79c5e9e185.tar.bz2 connman-19ac02e348fe64d2be0e28e30c377f79c5e9e185.zip |
tethering: Set tethering_status earlier
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/tethering.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tethering.c b/src/tethering.c index e8d09c07..29151943 100644 --- a/src/tethering.c +++ b/src/tethering.c @@ -349,13 +349,13 @@ int __connman_tethering_set_status(connman_bool_t status) 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; } |