Error = _net_get_tech_state(message, tech_state);
NETWORK_LOG(NETWORK_HIGH,
- "Technology-[%s] Powered-[%d] Connected-[%d]",
+ "Technology-[%s] Powered-[%d] Connected-[%d] Tethering-[%d]",
tech_state->technology,
tech_state->Powered,
- tech_state->Connected);
+ tech_state->Connected,
+ tech_state->Tethering);
g_variant_unref(message);
NETWORK_LOG(NETWORK_ERROR, "key-[%s]-[%d]", key, tech_state->Connected);
} else if (g_strcmp0(key, "Tethering") == 0) {
- /* For further use */
+ if (data)
+ tech_state->Tethering = TRUE;
+ else
+ tech_state->Tethering = FALSE;
}
}
}
goto state_done;
}
- if (tech_state.Powered == TRUE)
+ if (tech_state.Powered == TRUE
+ && tech_state.Tethering != TRUE)
wifi_state = WIFI_ON;
else
wifi_state = WIFI_OFF;