wifi_service_state_e wifi_state_get_service_state(void);
void wifi_state_set_tech_state(wifi_tech_state_e new_state);
-wifi_tech_state_e wifi_state_get_technology_state(void);
+wifi_tech_state_e wifi_state_get_technology_state(bool mode);
gboolean wifi_state_is_technology_available(void);
void wifi_state_set_connected_essid(void);
if (netconfig_wifi_is_bssid_scan_started() == TRUE) {
netconfig_wifi_bssid_signal_scandone();
- if (wifi_state_get_technology_state() < NETCONFIG_WIFI_TECH_POWERED)
+ if (wifi_state_get_technology_state(FALSE) < NETCONFIG_WIFI_TECH_POWERED)
return;
}
if (netconfig_wifi_get_bgscan_state() == TRUE) {
- if (wifi_state_get_technology_state() >=
+ if (wifi_state_get_technology_state(FALSE) >=
NETCONFIG_WIFI_TECH_POWERED)
netconfig_wifi_bgscan_start(FALSE);
if (data->timer_id > 0)
__netconfig_wifi_bgscan_stop_timer(data);
- wifi_tech_state = wifi_state_get_technology_state();
+ wifi_tech_state = wifi_state_get_technology_state(FALSE);
wifi_service_state = wifi_state_get_service_state();
DBG("wifi tech state [%s] service state [%s]",
_convert_wifi_technology_state_to_string(wifi_tech_state),
if (netconfig_is_device_scanning == TRUE)
return -EINPROGRESS;
- wifi_tech_state = wifi_state_get_technology_state();
+ wifi_tech_state = wifi_state_get_technology_state(FALSE);
if (wifi_tech_state <= NETCONFIG_WIFI_TECH_OFF)
err = wifi_power_driver_and_supplicant(TRUE);
}
#endif
- tech_state = wifi_state_get_technology_state();
+ tech_state = wifi_state_get_technology_state(FALSE);
if (tech_state <= NETCONFIG_WIFI_TECH_OFF) {
#if !defined TIZEN_WEARABLE
enabled = 1;
int err = 0;
wifi_tech_state_e tech_state;
- tech_state = wifi_state_get_technology_state();
+ tech_state = wifi_state_get_technology_state(FALSE);
if (tech_state > NETCONFIG_WIFI_TECH_OFF)
return -EALREADY;
int err = 0;
wifi_tech_state_e tech_state;
- tech_state = wifi_state_get_technology_state();
+ tech_state = wifi_state_get_technology_state(TRUE);
if (tech_state >= NETCONFIG_WIFI_TECH_POWERED) {
/* There can be a scenario where wifi is automatically *
* activated by connman if wifi was powered in last boot. *
int err = 0;
wifi_tech_state_e tech_state;
- tech_state = wifi_state_get_technology_state();
+ tech_state = wifi_state_get_technology_state(TRUE);
if (tech_state >= NETCONFIG_WIFI_TECH_POWERED)
return -EALREADY;
wifi_tech_state_e tech_state;
wifi_service_state_e service_state;
- tech_state = wifi_state_get_technology_state();
+ tech_state = wifi_state_get_technology_state(FALSE);
if (tech_state < NETCONFIG_WIFI_TECH_POWERED) {
DBG("Wi-Fi off or WPS only supported[%d]", tech_state);
goto cleanup;
* DO NOT update manually
* It includes Wi-Fi state configuration
*/
- tech_state = wifi_state_get_technology_state();
+ tech_state = wifi_state_get_technology_state(FALSE);
if (powered == TRUE) {
if (tech_state < NETCONFIG_WIFI_TECH_POWERED && netconfig_is_wifi_tethering_on() != TRUE) {
_convert_wifi_technology_state_to_string(old_state), _convert_wifi_technology_state_to_string(new_state));
}
-wifi_tech_state_e wifi_state_get_technology_state(void)
+wifi_tech_state_e wifi_state_get_technology_state(bool mode)
{
GVariant *message = NULL, *variant;
GVariantIter *iter, *next;
const char *path;
gchar *key;
- if (g_tech_state > NETCONFIG_WIFI_TECH_UNKNOWN)
+ if (!mode && g_tech_state > NETCONFIG_WIFI_TECH_UNKNOWN)
return g_tech_state;
message = netconfig_invoke_dbus_method(CONNMAN_SERVICE,
GVariant *param = NULL;
wifi_tech_state_e tech_state = NETCONFIG_WIFI_TECH_UNKNOWN;
wifi_service_state_e service_state = NETCONFIG_WIFI_UNKNOWN;
- tech_state = wifi_state_get_technology_state();
+ tech_state = wifi_state_get_technology_state(FALSE);
service_state = wifi_state_get_service_state();
if (tech_state == NETCONFIG_WIFI_TECH_UNKNOWN)