From: hyunuk.tak Date: Fri, 18 Sep 2020 06:39:51 +0000 (+0900) Subject: Add some lcov block and line X-Git-Tag: submit/tizen/20200925.132900~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F244400%2F2;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Add some lcov block and line Change-Id: I87db7dc862ec6f22e679515cbab7ede494ff6ad8 --- diff --git a/src/network_dbus.c b/src/network_dbus.c index 2fafc43..6f8f969 100755 --- a/src/network_dbus.c +++ b/src/network_dbus.c @@ -814,16 +814,16 @@ GVariant *_net_invoke_dbus_method(network_info_s *network_info, if (network_info == NULL || network_info->connection == NULL) { connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error); + /* LCOV_EXCL_START */ if (connection == NULL) { - /* LCOV_EXCL_START */ if (error != NULL) { WIFI_LOG(WIFI_ERROR, "Failed to connect to the D-BUS daemon [%s]", error->message); g_error_free(error); } - /* LCOV_EXCL_STOP */ return NULL; } + /* LCOV_EXCL_STOP */ created = TRUE; } else { connection = network_info->connection; @@ -964,8 +964,8 @@ int _net_dbus_get_scan_state(network_info_s *network_info, int *scanstate) if (message == NULL) { WIFI_LOG(WIFI_ERROR, "Failed to get scan state"); //LCOV_EXCL_LINE - __NETWORK_FUNC_EXIT__; - return Error; + __NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE + return Error; //LCOV_EXCL_LINE } g_variant_get(message, "(a{sv})", &iter); diff --git a/src/network_interface.c b/src/network_interface.c index ac9f36b..3639acd 100755 --- a/src/network_interface.c +++ b/src/network_interface.c @@ -3066,17 +3066,17 @@ static void _net_delete_profile_async_reply(GObject *source_object, conn = G_DBUS_CONNECTION(source_object); message = g_dbus_connection_call_finish(conn, res, &error); if (message == NULL && error != NULL) { - WIFI_LOG(WIFI_ERROR, "Delete profile, error [%s]", error->message); - Error = NET_ERR_UNKNOWN; - g_error_free(error); - goto error; + WIFI_LOG(WIFI_ERROR, "Delete profile, error [%s]", error->message); //LCOV_EXCL_LINE + Error = NET_ERR_UNKNOWN; //LCOV_EXCL_LINE + g_error_free(error); //LCOV_EXCL_LINE + goto error; //LCOV_EXCL_LINE } Error = NET_ERR_NO_PROFILE; g_variant_get(message, "(a(oa{sv}))", &iter); if (iter == NULL) { - g_variant_unref(message); - goto error; + g_variant_unref(message); //LCOV_EXCL_LINE + goto error; //LCOV_EXCL_LINE } while (g_variant_iter_loop(iter, "(oa{sv})", &path, &service)) { @@ -3093,7 +3093,7 @@ static void _net_delete_profile_async_reply(GObject *source_object, g_variant_unref(message); if (Error != NET_ERR_NONE) - goto error; + goto error; //LCOV_EXCL_LINE g_strlcpy(wifi_prof_name.ProfileName, request_table[NETWORK_REQUEST_TYPE_FORGET_AP].ProfileName, @@ -3105,7 +3105,7 @@ static void _net_delete_profile_async_reply(GObject *source_object, WIFI_LOG(WIFI_ERROR, //LCOV_EXCL_LINE "Failed to delete service(profile). Error [%s]", _net_print_error(Error)); - goto error; + goto error; //LCOV_EXCL_LINE } if (prof_info.ProfileState != NET_STATE_TYPE_ONLINE && @@ -3118,8 +3118,8 @@ static void _net_delete_profile_async_reply(GObject *source_object, return; error: - net_forget_ap_finished(network_info, Error); - __NETWORK_FUNC_EXIT__; + net_forget_ap_finished(network_info, Error); //LCOV_EXCL_LINE + __NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE } int net_delete_profile_async(network_info_s *network_info, const char* profile_name) @@ -3151,7 +3151,7 @@ int net_delete_profile_async(network_info_s *network_info, const char* profile_n "Failed to get service(profile) information. Error [%s]", _net_print_error(Error)); - network_info->request_table[NETWORK_REQUEST_TYPE_FORGET_AP].flag = FALSE; + network_info->request_table[NETWORK_REQUEST_TYPE_FORGET_AP].flag = FALSE; //LCOV_EXCL_LINE __NETWORK_FUNC_EXIT__; //LCOV_EXCL_LINE return Error; //LCOV_EXCL_LINE } @@ -3237,6 +3237,7 @@ int net_get_profile_info(network_info_s *network_info, return Error; } +//LCOV_EXCL_START int net_get_interface_list(network_info_s *network_info, GSList **interface_list) { __NETWORK_FUNC_ENTER__; @@ -3245,7 +3246,7 @@ int net_get_interface_list(network_info_s *network_info, GSList **interface_list Error = _net_get_interface_list(network_info, interface_list); if (Error != NET_ERR_NONE) { - WIFI_LOG(WIFI_ERROR, //LCOV_EXCL_LINE + WIFI_LOG(WIFI_ERROR, "Failed to get interface list. Error [%s]", _net_print_error(Error)); } @@ -3253,6 +3254,7 @@ int net_get_interface_list(network_info_s *network_info, GSList **interface_list __NETWORK_FUNC_EXIT__; return Error; } +//LCOV_EXCL_STOP int net_get_profile_list(network_info_s *network_info, GSList **profile_list) { diff --git a/src/wifi_ap.c b/src/wifi_ap.c index 4ecc9c0..a0e4f9e 100755 --- a/src/wifi_ap.c +++ b/src/wifi_ap.c @@ -515,16 +515,16 @@ EXPORT_API int wifi_manager_ap_get_raw_ssid(wifi_manager_ap_h ap, char **ssid, i if (_wifi_check_ap_validity(ap) == false || ssid == NULL || ssid_len == NULL) { - WIFI_LOG(WIFI_ERROR, "Invalid parameter"); + WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE - return WIFI_MANAGER_ERROR_INVALID_PARAMETER; + return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE } net_profile_info_s *profile_info = ap; *ssid = g_try_malloc0(NET_WLAN_RAW_SSID_LEN + 1); if (*ssid == NULL) { __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE - return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; + return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE } memcpy(*ssid, profile_info->raw_ssid, NET_WLAN_RAW_SSID_LEN); @@ -930,7 +930,7 @@ EXPORT_API int wifi_manager_ap_get_ip_address(wifi_manager_ap_h ap, &profile_info->net_info.IpAddr, address_family); if (g_strcmp0(*ip_address, "0.0.0.0") == 0) { - WIFI_LOG(WIFI_ERROR, "Invalid IP Address [%s]\n", *ip_address); //LCOV_EXCL_LINE + WIFI_LOG(WIFI_ERROR, "Invalid IP Address [%s]", *ip_address); //LCOV_EXCL_LINE __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE return WIFI_MANAGER_ERROR_NO_CONNECTION; //LCOV_EXCL_LINE } @@ -945,12 +945,12 @@ EXPORT_API int wifi_manager_ap_get_ip_address(wifi_manager_ap_h ap, } if (*ip_address == NULL) { - WIFI_LOG(WIFI_ERROR, "Out of memory\n"); //LCOV_EXCL_LINE + WIFI_LOG(WIFI_ERROR, "Out of memory"); //LCOV_EXCL_LINE __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE } - WIFI_LOG(WIFI_INFO, "Wi-Fi IP Address [%s]\n", *ip_address); + WIFI_LOG(WIFI_INFO, "Wi-Fi IP Address [%s]", *ip_address); __NETWORK_CAPI_FUNC_EXIT__; return WIFI_MANAGER_ERROR_NONE; @@ -1266,9 +1266,9 @@ EXPORT_API int wifi_manager_ap_get_dhcp_server_address(wifi_manager_ap_h ap, address_family); if (*dhcp_server == NULL) { - WIFI_LOG(WIFI_ERROR, "Out of memory\n"); - __NETWORK_CAPI_FUNC_EXIT__; - return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; + WIFI_LOG(WIFI_ERROR, "Out of memory"); //LCOV_EXCL_LINE + __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE + return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE } __NETWORK_CAPI_FUNC_EXIT__; @@ -1611,8 +1611,8 @@ EXPORT_API int wifi_manager_ap_set_dns_address(wifi_manager_ap_h ap, profile_info->net_info.DnsAddr[order-1].Data.Ipv4.s_addr = 0; else if (inet_pton(AF_INET, dns_address, &(profile_info->net_info.DnsAddr[order-1].Data.Ipv4)) < 1) { - __NETWORK_CAPI_FUNC_EXIT__; - return WIFI_MANAGER_ERROR_INVALID_PARAMETER; + __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE + return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE } if (profile_info->net_info.DnsCount < order) @@ -1632,17 +1632,17 @@ EXPORT_API int wifi_manager_ap_get_countrycode(wifi_manager_ap_h ap, CHECK_FEATURE_SUPPORTED(WIFI_FEATURE); if (_wifi_check_ap_validity(ap) == false || country_code == NULL) { - WIFI_LOG(WIFI_ERROR, "Invalid parameter"); - __NETWORK_CAPI_FUNC_EXIT__; - return WIFI_MANAGER_ERROR_INVALID_PARAMETER; + WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE + __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE + return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE } net_profile_info_s *profile_info = ap; if (profile_info->country_code[0] != '\0') { *country_code = strdup(profile_info->country_code); if (*country_code == NULL) { - __NETWORK_CAPI_FUNC_EXIT__; - return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; + __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE + return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE } } else *country_code = NULL; @@ -1660,9 +1660,9 @@ EXPORT_API int wifi_manager_foreach_found_bssid(wifi_manager_ap_h ap, CHECK_FEATURE_SUPPORTED(WIFI_FEATURE); if (_wifi_check_ap_validity(ap) == false || callback == NULL) { - WIFI_LOG(WIFI_ERROR, "Invalid parameter\n"); - __NETWORK_CAPI_FUNC_EXIT__; - return WIFI_MANAGER_ERROR_INVALID_PARAMETER; + WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE + __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE + return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE } net_profile_info_s *profile_info = ap; @@ -2550,7 +2550,7 @@ EXPORT_API int wifi_manager_ap_get_disconnect_reason(wifi_manager_ap_h ap, if (profile_info->disconnect_reason == 0) profile_info->disconnect_reason = WIFI_REASON_UNSPECIFIED; - WIFI_LOG(WIFI_INFO, "Disconnect Reason Code %d\n", + WIFI_LOG(WIFI_INFO, "Disconnect Reason Code %d", *disconnect_reason); __NETWORK_CAPI_FUNC_EXIT__; @@ -2574,7 +2574,7 @@ EXPORT_API int wifi_manager_ap_get_assoc_status_code(wifi_manager_ap_h ap, net_profile_info_s *profile_info = ap; *status_code = (int)profile_info->assoc_status_code; - WIFI_LOG(WIFI_INFO, "Association Status Code %d\n", + WIFI_LOG(WIFI_INFO, "Association Status Code %d", *status_code); __NETWORK_CAPI_FUNC_EXIT__; @@ -2642,13 +2642,14 @@ EXPORT_API int wifi_manager_ap_get_error_state(wifi_manager_ap_h ap, wifi_manage net_profile_info_s *profile_info = ap; *error_state = __wifi_convert_to_ap_error_state(profile_info->ProfileErrorState); - WIFI_LOG(WIFI_INFO, "error_state %d\n", *error_state); + WIFI_LOG(WIFI_INFO, "error_state %d", *error_state); __NETWORK_CAPI_FUNC_EXIT__; return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_ap_get_connection_mode(wifi_manager_ap_h ap, wifi_manager_connection_mode_e *mode) { __NETWORK_CAPI_FUNC_ENTER__; @@ -2672,3 +2673,4 @@ EXPORT_API int wifi_manager_ap_get_connection_mode(wifi_manager_ap_h ap, wifi_ma __NETWORK_CAPI_FUNC_EXIT__; return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_STOP diff --git a/src/wifi_config.c b/src/wifi_config.c index d22ad34..1b6ad3f 100755 --- a/src/wifi_config.c +++ b/src/wifi_config.c @@ -34,13 +34,13 @@ EXPORT_API int wifi_manager_config_create(wifi_manager_h wifi, const char *name, RET_ERR_IF_HANDLE_IS_NOT_VALID_OR_NOT_INITIALIZED(wifi, __NETWORK_CAPI_FUNC_EXIT__); if (!_wifi_check_essid_validity(name)) { - __NETWORK_CAPI_FUNC_EXIT__; + __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE } h = g_new0(wifi_config_s, 1); if (h == NULL) { - __NETWORK_CAPI_FUNC_EXIT__; + __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE return WIFI_MANAGER_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE } @@ -343,6 +343,7 @@ EXPORT_API int wifi_manager_config_foreach_configuration(wifi_manager_h wifi, return ret; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_config_foreach_configuration_in_all_interfaces(wifi_manager_h wifi, wifi_manager_config_list_cb callback, void *user_data) { @@ -372,6 +373,7 @@ EXPORT_API int wifi_manager_config_foreach_configuration_in_all_interfaces(wifi_ __NETWORK_CAPI_FUNC_EXIT__; return ret; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_config_get_name(wifi_manager_config_h config, char **name) { @@ -894,6 +896,7 @@ EXPORT_API int wifi_manager_config_set_dns_address(wifi_manager_config_h config, return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_config_get_frequency(wifi_manager_config_h config, int *frequency) { @@ -935,6 +938,7 @@ EXPORT_API int wifi_manager_config_set_frequency(wifi_manager_config_h config, __NETWORK_CAPI_FUNC_EXIT__; return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_config_get_eap_anonymous_identity(wifi_manager_config_h config, char **anonymous_identity) diff --git a/src/wifi_dpp.c b/src/wifi_dpp.c index 55da5ed..393eb6f 100755 --- a/src/wifi_dpp.c +++ b/src/wifi_dpp.c @@ -21,6 +21,8 @@ /** * Wifi DPP CAPI */ + +//LCOV_EXCL_START EXPORT_API int wifi_manager_dpp_create(wifi_manager_h wifi, bool is_initiator, wifi_manager_dpp_h *handle) { @@ -508,3 +510,4 @@ EXPORT_API int wifi_manager_dpp_stop(wifi_manager_dpp_h handle) __NETWORK_CAPI_FUNC_EXIT__; return rv; } +//LCOV_EXCL_STOP diff --git a/src/wifi_internal.c b/src/wifi_internal.c index f40bb57..f9199b8 100755 --- a/src/wifi_internal.c +++ b/src/wifi_internal.c @@ -317,8 +317,6 @@ static void __clear_profile_internal_list(GSList *iterator) } } -//LCOV_EXCL_STOP - void __clear_interface_list(GSList **iterator) { if (*iterator) { @@ -327,6 +325,7 @@ void __clear_interface_list(GSList **iterator) *iterator = NULL; } } +//LCOV_EXCL_STOP void __clear_profile_list(GSList **iterator) { @@ -347,7 +346,7 @@ gpointer _wifi_copy_vsie_list(gconstpointer data, gpointer user_data) if (vsie) memcpy(vsie, str, str[1]+2); else - WIFI_LOG(WIFI_ERROR, "Failed to allocate memory."); + WIFI_LOG(WIFI_ERROR, "Failed to allocate memory."); //LCOV_EXCL_LINE return vsie; } @@ -383,6 +382,7 @@ static int __update_profile_iterator(wifi_manager_handle_s *wifi_handle) return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START static int __update_interface_iterator(wifi_manager_handle_s *wifi_handle) { int rv; @@ -398,6 +398,7 @@ static int __update_interface_iterator(wifi_manager_handle_s *wifi_handle) return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_STOP static void __update_specific_iterator(wifi_manager_handle_s *wifi_handle, GSList *bss_list) { @@ -1054,6 +1055,7 @@ static void __rssi_level_changed_cb(wifi_manager_handle_s *wifi_handle, } } +//LCOV_EXCL_START static void __module_state_changed_cb(wifi_manager_handle_s *wifi_handle, net_module_info_s *module_info) { @@ -1220,6 +1222,7 @@ static void __dpp_removed_cb(wifi_manager_handle_s *wifi_handle, g_p_dpp_current = NULL; } +//LCOV_EXCL_STOP static void _wifi_evt_cb(net_event_info_s *event_cb, void *user_data) { @@ -1461,6 +1464,7 @@ static void _wifi_evt_cb(net_event_info_s *event_cb, void *user_data) case NET_EVENT_WIFI_RSSI_LEVEL_CHANGED: __rssi_level_changed_cb(wifi_handle, (net_rssi_info_s *)event_cb->Data); break; + //LCOV_EXCL_START case NET_EVENT_WIFI_MODULE_STATE_CHANGED: __module_state_changed_cb(wifi_handle, (net_module_info_s *)event_cb->Data); break; @@ -1506,6 +1510,7 @@ static void _wifi_evt_cb(net_event_info_s *event_cb, void *user_data) case NET_EVENT_WIFI_DPP_REMOVED: __dpp_removed_cb(wifi_handle, (net_dpp_event_info_s *)event_cb->Data); break; + //LCOV_EXCL_STOP default: break; } @@ -1612,6 +1617,7 @@ void __clear_config_list(GSList **iterator) } } +//LCOV_EXCL_START static void __free_dpp(gpointer data) { wifi_dpp_s *p_dpp = (wifi_dpp_s *)data; @@ -1621,6 +1627,7 @@ static void __free_dpp(gpointer data) g_free(p_dpp->ssid); g_free(p_dpp); } +//LCOV_EXCL_STOP void _wifi_deinit(wifi_manager_h wifi) { @@ -2114,8 +2121,8 @@ int _wifi_bssid_scan_request(wifi_manager_h wifi, int flight_mode = -1; if (vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &flight_mode) != 0) { - WIFI_LOG(WIFI_ERROR, "Failed to get vconf key of flight mode"); - return WIFI_MANAGER_ERROR_OPERATION_FAILED; + WIFI_LOG(WIFI_ERROR, "Failed to get vconf key of flight mode"); //LCOV_EXCL_LINE + return WIFI_MANAGER_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE } rv = _wifi_get_wifi_device_state(wifi, &device_state); @@ -2528,6 +2535,7 @@ int _wifi_get_connected_profile(wifi_manager_h wifi, wifi_manager_ap_h *ap) return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START int _wifi_foreach_available_interface(wifi_manager_h wifi, wifi_manager_interface_cb callback, void *user_data) { @@ -2554,6 +2562,7 @@ int _wifi_foreach_available_interface(wifi_manager_h wifi, return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_STOP int _wifi_foreach_found_ap(wifi_manager_h wifi, wifi_manager_found_ap_cb callback, void *user_data) @@ -2587,6 +2596,7 @@ int _wifi_foreach_found_ap(wifi_manager_h wifi, return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START int _wifi_foreach_found_ap_in_all_interfaces(wifi_manager_h wifi, wifi_manager_found_ap_cb callback, void *user_data) { @@ -2616,6 +2626,7 @@ int _wifi_foreach_found_ap_in_all_interfaces(wifi_manager_h wifi, return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_STOP int _wifi_foreach_found_specific_ap(wifi_manager_h wifi, wifi_manager_found_ap_cb callback, void *user_data) @@ -3381,6 +3392,7 @@ int _wifi_check_feature_supported(const char *feature_name, ...) return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START tizen_profile_t _get_tizen_profile() { static tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN; @@ -3414,7 +3426,6 @@ tizen_profile_t _get_tizen_profile() return profile; } -//LCOV_EXCL_START int _wifi_set_autoscan(wifi_manager_h wifi, bool autoscan) { int rv = 0; @@ -3785,6 +3796,7 @@ int _wifi_get_max_scan_ssids(wifi_manager_h wifi, int *max_scan_ssids) return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START bool _wifi_check_dpp_validity(wifi_manager_dpp_h dpp_h) { GSList *list = NULL; @@ -3936,3 +3948,4 @@ int _wifi_dpp_stop(wifi_dpp_s *p_dpp) return __convert_net_err_to_wifi_dpp_error(rv); } +//LCOV_EXCL_STOP diff --git a/src/wifi_manager.c b/src/wifi_manager.c index c97041c..00c5d98 100755 --- a/src/wifi_manager.c +++ b/src/wifi_manager.c @@ -134,6 +134,7 @@ EXPORT_API int wifi_manager_initialize(wifi_manager_h *wifi) return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_initialize_with_interface_name(wifi_manager_h *wifi, const char *ifname) { @@ -187,6 +188,7 @@ EXPORT_API int wifi_manager_initialize_with_interface_name(wifi_manager_h *wifi, __NETWORK_CAPI_FUNC_EXIT__; return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_deinitialize(wifi_manager_h wifi) { @@ -528,6 +530,7 @@ EXPORT_API int wifi_manager_get_connected_ap(wifi_manager_h wifi, wifi_manager_a return rv; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_foreach_available_interface(wifi_manager_h wifi, wifi_manager_interface_cb callback, void *user_data) { @@ -550,6 +553,7 @@ EXPORT_API int wifi_manager_foreach_available_interface(wifi_manager_h wifi, __NETWORK_CAPI_FUNC_EXIT__; return rv; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_foreach_found_ap(wifi_manager_h wifi, wifi_manager_found_ap_cb callback, void *user_data) @@ -574,6 +578,7 @@ EXPORT_API int wifi_manager_foreach_found_ap(wifi_manager_h wifi, return rv; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_foreach_found_ap_in_all_interfaces(wifi_manager_h wifi, wifi_manager_found_ap_cb callback, void *user_data) { @@ -596,6 +601,7 @@ EXPORT_API int wifi_manager_foreach_found_ap_in_all_interfaces(wifi_manager_h wi __NETWORK_CAPI_FUNC_EXIT__; return rv; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_foreach_found_specific_ap(wifi_manager_h wifi, wifi_manager_found_ap_cb callback, void* user_data) @@ -650,6 +656,7 @@ EXPORT_API int wifi_manager_foreach_found_bssid_ap(wifi_manager_h wifi, return rv; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_foreach_found_netlink_scan_ap(wifi_manager_h wifi, wifi_manager_found_ap_cb callback, void *user_data) { @@ -672,6 +679,7 @@ EXPORT_API int wifi_manager_foreach_found_netlink_scan_ap(wifi_manager_h wifi, __NETWORK_CAPI_FUNC_EXIT__; return rv; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_connect(wifi_manager_h wifi, wifi_manager_ap_h ap, wifi_manager_connected_cb callback, void *user_data) @@ -1206,6 +1214,7 @@ EXPORT_API int wifi_manager_unset_rssi_level_changed_cb(wifi_manager_h wifi) return WIFI_MANAGER_ERROR_NONE; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_connect_by_wps_pbc_without_ssid(wifi_manager_h wifi, wifi_manager_connected_cb callback, void* user_data) { @@ -1283,6 +1292,7 @@ EXPORT_API int wifi_manager_cancel_wps(wifi_manager_h wifi) __NETWORK_CAPI_FUNC_EXIT__; return rv; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_get_wps_generated_pin(wifi_manager_h wifi, char **wps_pin) { @@ -1431,7 +1441,6 @@ EXPORT_API int wifi_manager_get_passpoint(wifi_manager_h wifi, int *passpoint) __NETWORK_CAPI_FUNC_EXIT__; return rv; } -//LCOV_EXCL_STOP EXPORT_API int wifi_manager_set_module_state_changed_cb(wifi_manager_h wifi, wifi_manager_module_state_changed_cb callback, void* user_data) @@ -1492,6 +1501,7 @@ EXPORT_API int wifi_manager_get_module_state(wifi_manager_h wifi, return rv; } +//LCOV_EXCL_STOP EXPORT_API int wifi_manager_bssid_scan(wifi_manager_h wifi, wifi_manager_bssid_scan_finished_cb callback, void *user_data) @@ -1503,9 +1513,9 @@ EXPORT_API int wifi_manager_bssid_scan(wifi_manager_h wifi, RET_ERR_IF_HANDLE_IS_NOT_VALID_OR_NOT_INITIALIZED(wifi, __NETWORK_CAPI_FUNC_EXIT__); if (callback == NULL) { - WIFI_LOG(WIFI_ERROR, "Invalid parameter"); + WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE __NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE - return WIFI_MANAGER_ERROR_INVALID_PARAMETER; + return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE } __NETWORK_CAPI_FUNC_EXIT__; @@ -1930,6 +1940,7 @@ EXPORT_API int wifi_manager_specific_ap_start_multi_scan(wifi_manager_h wifi, return rv; } +//LCOV_EXCL_START EXPORT_API int wifi_manager_get_connection_mode(wifi_manager_h wifi, wifi_manager_connection_mode_e *mode) { @@ -1953,3 +1964,4 @@ EXPORT_API int wifi_manager_get_connection_mode(wifi_manager_h wifi, __NETWORK_CAPI_FUNC_EXIT__; return rv; } +//LCOV_EXCL_STOP