Tethering: Update Wi-Fi station state when tethering on/off 70/5670/1
authorLiu, Guoqiang <guoqiangx.liu@intel.com>
Mon, 1 Apr 2013 06:10:26 +0000 (14:10 +0800)
committerZhang zhengguang <zhengguang.zhang@intel.com>
Fri, 12 Jul 2013 05:55:49 +0000 (13:55 +0800)
Wi-Fi station state should update when turning on/off Wi-Fi tethering:
tethering on, Wi-Fi station state should be off, tethering off, Wi-Fi
station state should be on.

Signed-off-by: Liu, Guoqiang <guoqiangx.liu@intel.com>
src/signal-handler.c

index 822a7ba788643fe561a88e0e4466c7e5b49dbb23..be35e06cb45849a3fe0c6280421b368edb3ed876 100644 (file)
@@ -110,6 +110,10 @@ static void __netconfig_technology_signal_handler(DBusMessage *msg)
                        /* Connection state */
                } else if (g_strcmp0(key, "Tethering") == 0) {
                        /* Tethering state */
+                       if (value == TRUE)
+                               netconfig_wifi_update_power_state(FALSE);
+                       else
+                               netconfig_wifi_update_power_state(TRUE);
                }
        } else if (g_str_has_prefix(tech,
                        CONNMAN_CELLULAR_TECHNOLOGY_PREFIX) == TRUE) {