int _net_dbus_set_agent_wps_pin_and_connect(
const char *wps_pin, const char *profilename);
int _net_dbus_get_tech_status(net_tech_info_s* tech_status);
-int _net_dbus_get_wifi_state(char **wifi_state);
int _net_dbus_connect_service(const net_wifi_connect_service_info_t* wifi_connection_info);
int _net_dbus_get_preferred_ipv6_address(const char *profilename, char **address);
int _net_dbus_set_profile_ipv4(net_profile_info_s* prof_info, char* profile_name);
return Error;
}
-int _net_dbus_get_wifi_state(char **wifi_state)
-{
- __NETWORK_FUNC_ENTER__;
-
- net_err_e Error = NET_ERR_NONE;
- GVariant *message = NULL;
- const char *method = "GetWifiState";
-
- if (NULL == wifi_state) {
- WIFI_LOG(WIFI_ERROR, "Invalid Parameter\n"); //LCOV_EXCL_LINE
- __NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE
- return NET_ERR_INVALID_PARAM; //LCOV_EXCL_LINE
- }
-
- message = _net_invoke_dbus_method(
- NETCONFIG_SERVICE, NETCONFIG_WIFI_PATH,
- NETCONFIG_WIFI_INTERFACE, method, NULL, &Error);
-
- if (message == NULL) {
- WIFI_LOG(WIFI_ERROR, "Failed to get wifi state\n"); //LCOV_EXCL_LINE
- __NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE
- return Error; //LCOV_EXCL_LINE
- }
-
- g_variant_get(message, "(s)", wifi_state);
- g_variant_unref(message);
-
- __NETWORK_FUNC_EXIT__;
-
- return Error;
-}
-
//LCOV_EXCL_START
int _net_dbus_set_eap_config_fields_and_connect(
const net_wifi_connect_service_info_t *wifi_info,